|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SNMPSession
Generic interface for any version of the SNMP protocol. Use SNMPClient.getSession(java.lang.String, java.lang.Integer, java.lang.String, org.rhq.plugins.www.snmp.SNMPClient.SNMPVersion, long, int) to get an instance of a
class that implements this interface.
| Method Summary | |
|---|---|
void |
close()
Closes the session and all underlying resources. |
List<SNMPValue> |
getBulk(String mibName)
TODO |
List<SNMPValue> |
getColumn(String mibName)
Retrieves all values from a column of an SNMP table (i.e. |
SNMPValue |
getNextValue(String mibName)
Retrieve the variable that logically next after the specified MIB name or OID. |
SNMPValue |
getSingleValue(String mibName)
Retrieves the variable with the the specified MIB name or OID. |
Map<String,SNMPValue> |
getTable(String mibName,
int index)
TODO |
boolean |
ping()
Pings the agent associated with this session to see if it is responsive. |
| Method Detail |
|---|
@NotNull
SNMPValue getSingleValue(String mibName)
throws SNMPException
mibName - the name of the variable to retrieve
SNMPException - if an error occurs communicating with the SNMP agent.
@NotNull
SNMPValue getNextValue(String mibName)
throws SNMPException
mibName - the name of the MIB variable at which to start looking
SNMPException - if an error occurs communicating with the SNMP agent.
@NotNull
List<SNMPValue> getColumn(String mibName)
throws SNMPException
mibName - The name of the column of the SNMP table.
SNMPException - if an error occurs communicating with the SNMP agent.
@NotNull
Map<String,SNMPValue> getTable(String mibName,
int index)
throws SNMPException
mibName - the MIB name of the tableindex -
SNMPException - if an error occurs communicating with the SNMP agent.
@NotNull
List<SNMPValue> getBulk(String mibName)
throws SNMPException
mibName - the MIB name of the starting OID
SNMPException - if an error occurs communicating with the SNMP agent.boolean ping()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||