|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.collectd.JMXDataSource
public class JMXDataSource
This class encapsulates an RRDTool data source. Data source information parsed from the DataCollection.xml file is stored in RRDDataSource objects. For additional information on RRD and RRDTool see: http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/
| Field Summary | |
|---|---|
static String |
RRD_ERROR
Constant RRD_ERROR="RRD_ERROR" |
| Constructor Summary | |
|---|---|
JMXDataSource()
Constructor |
|
JMXDataSource(JMXDataSource second)
Class copy constructor. |
|
JMXDataSource(MibObject obj,
String collectionName)
Constructor for JMXDataSource. |
|
| Method Summary | |
|---|---|
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 |
getStorableValue(SnmpValue snmpVal)
getStorableValue |
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. |
boolean |
performUpdate(String owner,
File repository,
SnmpValue value)
performUpdate |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RRD_ERROR
RRD_ERROR="RRD_ERROR"
| Constructor Detail |
|---|
public JMXDataSource()
public JMXDataSource(MibObject obj,
String collectionName)
Constructor for JMXDataSource.
obj - a MibObject object.collectionName - a String object.public JMXDataSource(JMXDataSource second)
second - The object to make a duplicate of.| Method Detail |
|---|
public static boolean handlesType(String objectType)
handlesType
objectType - MIB object type being inquired about
public 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 void setMin(String minimum)
setMin
minimum - a String object.public void setMax(String maximum)
setMax
maximum - a String object.public String getType()
public int getHeartbeat()
getHeartbeat
public String getMin()
getMin
String object.public String getMax()
getMax
String object.public Object clone()
clone in class Objectpublic String toString()
toString in class Object
public boolean performUpdate(String owner,
File repository,
SnmpValue value)
performUpdate
owner - a String object.repository - a File object.value - a SnmpValue object.
public String getStorableValue(SnmpValue snmpVal)
getStorableValue
snmpVal - a SnmpValue object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||