public class JMXDataSource extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
RRD_ERROR
Constant
RRD_ERROR="RRD_ERROR" |
Constructor and Description |
---|
JMXDataSource()
Constructor
|
JMXDataSource(JMXDataSource second)
Class copy constructor.
|
JMXDataSource(MibObject obj,
String collectionName)
Constructor for JMXDataSource.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Used to get a duplicate of self.
|
int |
getHeartbeat()
getHeartbeat
|
String |
getInstance()
Returns the object's instance id.
|
String |
getMax()
getMax
|
String |
getMin()
getMin
|
String |
getName()
Returns the object's name.
|
String |
getOid()
Returns the object's identifier.
|
String |
getType()
Returns the object's data type.
|
static boolean |
handlesType(String objectType)
handlesType
|
static String |
mapType(String objectType)
Static method which takes a MIB object type (counter, counter32,
octetstring, etc...) and returns the appropriate RRD data type.
|
void |
setHeartbeat(int heartbeat)
setHeartbeat
|
void |
setInstance(String instance)
This method is used to assign the object's instance id.
|
void |
setMax(String maximum)
setMax
|
void |
setMin(String minimum)
setMin
|
void |
setName(String name)
This method is used to assign the data source name.
|
void |
setOid(String oid)
This method is used to assign the object's identifier.
|
void |
setType(String type)
This method is used to assign the object's expected data type.
|
String |
toString()
This method is responsible for returning a String object which represents
the content of this RRDDataSource object.
|
public static final String RRD_ERROR
RRD_ERROR="RRD_ERROR"
public JMXDataSource()
public JMXDataSource(MibObject obj, String collectionName)
Constructor for JMXDataSource.
public JMXDataSource(JMXDataSource second)
second
- The object to make a duplicate of.public static boolean handlesType(String objectType)
handlesType
objectType
- MIB object type being inquired aboutpublic static String mapType(String objectType)
objectType
- -
MIB object type to be mapped.public void setOid(String oid)
oid
- -
object identifier in dotted decimal notation (e.g.,
".1.3.6.1.2.1.1.1")public void setInstance(String instance)
instance
- -
instance identifier (to be appended to oid)public void setName(String name)
name
- a String
object.public String getOid()
public String getInstance()
public String getName()
public void setType(String type)
type
- -
object's data typepublic void setHeartbeat(int heartbeat)
setHeartbeat
heartbeat
- a int.public String getType()
public int getHeartbeat()
getHeartbeat
public Object clone()
Copyright © 2017. All rights reserved.