|
|||||||||
| 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
|
| Constructor Summary | |
|---|---|
JMXDataSource()
Constructor |
|
JMXDataSource(JMXDataSource second)
Class copy constructor. |
|
JMXDataSource(MibObject obj,
String collectionName)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Used to get a duplicate of self. |
int |
getHeartbeat()
|
String |
getInstance()
Returns the object's instance id. |
String |
getMax()
|
String |
getMin()
|
String |
getName()
Returns the object's name. |
String |
getOid()
Returns the object's identifier. |
String |
getStorableValue(SnmpValue snmpVal)
|
String |
getType()
Returns the object's data type. |
static boolean |
handlesType(String objectType)
|
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)
|
void |
setHeartbeat(int heartbeat)
|
void |
setInstance(String instance)
This method is used to assign the object's instance id. |
void |
setMax(String maximum)
|
void |
setMin(String minimum)
|
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
| Constructor Detail |
|---|
public JMXDataSource()
public JMXDataSource(MibObject obj,
String collectionName)
public JMXDataSource(JMXDataSource second)
second - The object to make a duplicate of.| Method Detail |
|---|
public static boolean handlesType(String objectType)
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)
alias - -
object alias (e.g., "sysDescription")public String getOid()
public String getInstance()
public String getName()
public void setType(String type)
type - -
object's data typepublic void setHeartbeat(int heartbeat)
public void setMin(String minimum)
public void setMax(String maximum)
public String getType()
public int getHeartbeat()
public String getMin()
public String getMax()
public Object clone()
clone in class Objectpublic String toString()
toString in class Object
public boolean performUpdate(String owner,
File repository,
SnmpValue value)
public String getStorableValue(SnmpValue snmpVal)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||