|
Hyperic HQ Plugin API v. 2.5.dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generic interface for any version of the SNMP protocol. Use the SNMPClient.getSession to get an instance of a class that implements this interface.
Method Summary | |
void |
close()
Closes the session. |
java.util.List |
getBulk(java.lang.String mibName)
|
java.util.List |
getColumn(java.lang.String mibName)
Retrieves all values from a column of an SNMP table. |
SNMPValue |
getNextValue(java.lang.String mibName)
Retrieve the value that is equal to or logically next after the specified name. |
int |
getRetries()
Get the retries value for this session. |
SNMPValue |
getSingleValue(java.lang.String mibName)
Retrieve a single data variable from an SNMP agent. |
java.util.Map |
getTable(java.lang.String mibName,
int index)
|
long |
getTimeout()
Get the timeout value for this session. |
void |
setRetries(int retries)
Set the retries value for this session. |
void |
setTimeout(long timeout)
Set the timeout value for this session. |
Method Detail |
public SNMPValue getSingleValue(java.lang.String mibName) throws SNMPException
mibName
- The name of the variable to retrieve.
SNMPException
- if an error occurs communicating
with the SNMP agent.public SNMPValue getNextValue(java.lang.String mibName) throws SNMPException
mibName
- The name of the MIB variable to start looking.
SNMPException
- if an error occurs communicating
with the SNMP agent.public java.util.List getColumn(java.lang.String mibName) throws SNMPException
mibName
- The name of the column of the SNMP table.
SNMPException
- if an error occurs communicating
with the SNMP agent.public java.util.Map getTable(java.lang.String mibName, int index) throws SNMPException
SNMPException
public java.util.List getBulk(java.lang.String mibName) throws SNMPException
SNMPException
public long getTimeout()
public void setTimeout(long timeout)
timeout
- The timeout value for this session.public int getRetries()
public void setRetries(int retries)
retries
- The retries value for this session.public void close()
|
Hyperic HQ Plugin API v. 2.5.dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |