public enum SnmpRequester extends Enum<SnmpRequester>
| Enum Constant and Description |
|---|
RAW
The simplest requester
Just get a collection of oid and return the associated value
|
SIMPLE
Collect a set of variable by append .0 to the OID of the oid
the returned OID are left unchanged
|
TABULAR
A requester used to read an array of oid
|
TREE
A requester used to read an tree of oid
|
| Modifier and Type | Method and Description |
|---|---|
abstract Map<OID,Object> |
doSnmpGet(SnmpConnection cnx,
Collection<OID> oidsSet)
The method that need to be implemented to do the request
|
static SnmpRequester |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnmpRequester[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnmpRequester SIMPLE
public static final SnmpRequester TABULAR
public static final SnmpRequester TREE
public static final SnmpRequester RAW
public static SnmpRequester[] values()
for (SnmpRequester c : SnmpRequester.values()) System.out.println(c);
public static SnmpRequester valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic abstract Map<OID,Object> doSnmpGet(SnmpConnection cnx, Collection<OID> oidsSet) throws IOException
cnx - The connection used for the requestoidsSet - a collection of OID to be requestedIOException