|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snmp.lib.ServiceConnector
The ServiceConnector class provides the simple interface to search the OID record from the MIB database, get the MBean attribute value, or set the MBean attribute value.
Field Summary | |
private static ServiceConnector |
instance
|
Constructor Summary | |
private |
ServiceConnector()
|
Method Summary | |
SnmpVariable |
getAttribute(SnmpVariable var)
Gets the MBean attribute value associating to the OID record. |
static ServiceConnector |
getInstance()
Gets the singleton object of the ServiceConnector. |
OidRecord |
getOidRecord(java.lang.String oid)
Gets the OID record matching to the oid string from the MIB database. |
private void |
init()
|
SnmpVariable |
setAttribute(SnmpVariable var)
Sets the MBean attribute value associating to the OID record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ServiceConnector instance
Constructor Detail |
private ServiceConnector()
Method Detail |
private void init()
public OidRecord getOidRecord(java.lang.String oid) throws SnmpException
SnmpException
- thrown if any error occurs during
retriving the OID record.public SnmpVariable getAttribute(SnmpVariable var) throws SnmpException
var
- The snmp variable.
SnmpException
- thrown if MBean is not found, permission error
occurs in reading the attribute, or any other error occurs.public SnmpVariable setAttribute(SnmpVariable var) throws SnmpException
var
- The SnmpVariable object.
SnmpException
- thrown if MBean is not found, permission error
occurs in writting the attribute, or any other error occurs.public static ServiceConnector getInstance()
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |