|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.MibObject
public class MibObject
This class is responsible for holding information about a particular MIB object parsed from the DataCollection.xml file.
| Field Summary | |
|---|---|
static String |
INSTANCE_IFADDRESS
Indicates that the interface's IP address is to be appended to the object's oid. |
static String |
INSTANCE_IFINDEX
Indicates that the interface's 'ifIndex' value from the 'ipInterface' table of the database should be appended to the object's oid. |
| Constructor Summary | |
|---|---|
MibObject()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
This method is responsible for comparing this MibObject with the passed Object to determine if they are equivalent. |
String |
getAlias()
Returns the object's alias. |
org.opennms.netmgt.snmp.CollectionTracker |
getCollectionTracker()
|
org.opennms.netmgt.snmp.CollectionTracker |
getCollectionTracker(org.opennms.netmgt.snmp.SnmpInstId... instances)
|
static org.opennms.netmgt.snmp.CollectionTracker[] |
getCollectionTrackers(List<MibObject> objList)
|
static org.opennms.netmgt.snmp.CollectionTracker[] |
getCollectionTrackers(List<MibObject> objList,
org.opennms.netmgt.snmp.SnmpInstId... instances)
|
String |
getGroupIfType()
|
String |
getGroupName()
|
String |
getInstance()
Returns the instance string associated with the object. |
String |
getMaxval()
Returns the object's maximum value. |
String |
getMinval()
Returns the object's minimum value. |
String |
getOid()
Returns the object's identifier. |
ResourceType |
getResourceType()
|
org.opennms.netmgt.snmp.SnmpObjId |
getSnmpObjId()
|
String |
getType()
Returns the object's data type. |
int |
hashCode()
|
void |
setAlias(String alias)
This method is used to assign the object's alias. |
void |
setGroupIfType(String groupIfType)
|
void |
setGroupName(String groupName)
|
void |
setInstance(String instance)
This method is used to specify the object's instance to be retrieved. |
void |
setMaxval(String maxval)
This method is used to assign the object's maximum value. |
void |
setMinval(String minval)
This method is used to assign the object's minimum value. |
void |
setOid(String oid)
This method is used to assign the object's identifier. |
void |
setResourceType(ResourceType resourceType)
|
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 MibObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String INSTANCE_IFINDEX
public static final String INSTANCE_IFADDRESS
| Constructor Detail |
|---|
public MibObject()
| Method Detail |
|---|
public void setOid(String oid)
oid - -
object identifier in dotted decimal notation (e.g.,
".1.3.6.1.2.1.1.1")public void setAlias(String alias)
alias - -
object alias (e.g., "sysDescription")public void setType(String type)
type - -
object's data typepublic void setMaxval(String maxval)
maxval - object's maximum valuepublic void setMinval(String minval)
minval - object's minimum valuepublic void setInstance(String instance)
INSTANCE_IFINDEX,
INSTANCE_IFADDRESSpublic void setGroupName(String groupName)
public String getOid()
public String getMaxval()
public String getMinval()
public String getAlias()
public String getType()
public String getInstance()
public String getGroupName()
public boolean equals(Object object)
equals in class Objectobject - -
MibObject to be compared to this object.
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic org.opennms.netmgt.snmp.CollectionTracker getCollectionTracker()
getCollectionTracker in interface org.opennms.netmgt.snmp.Collectablepublic org.opennms.netmgt.snmp.CollectionTracker getCollectionTracker(org.opennms.netmgt.snmp.SnmpInstId... instances)
public static org.opennms.netmgt.snmp.CollectionTracker[] getCollectionTrackers(List<MibObject> objList)
public static org.opennms.netmgt.snmp.CollectionTracker[] getCollectionTrackers(List<MibObject> objList,
org.opennms.netmgt.snmp.SnmpInstId... instances)
public org.opennms.netmgt.snmp.SnmpObjId getSnmpObjId()
public void setGroupIfType(String groupIfType)
public String getGroupIfType()
public void setResourceType(ResourceType resourceType)
public ResourceType getResourceType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||