public class SnmpTarget
extends java.lang.Object
StreamEventMonitor| Constructor and Description |
|---|
SnmpTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
setObjectID(java.lang.String oid)
Sets an OID.
|
void |
setObjectIDList(java.lang.String[] oids)
Sets a list of OIDs.
|
void |
setParameters(java.lang.String host,
int port,
java.lang.String community,
boolean tcp)
Sets the SNMPv1 parameters and creates a SnmpContextPool context.
|
void |
setParameters(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass,
java.lang.String contextName,
byte[] contextEngineId,
int proto,
boolean tcp)
Sets the SNMPv3 parameters and creates a SnmpContextv3Pool context.
|
varbind |
snmpGetNextVariableBinding()
Performs a (blocked) getNextRequest with the context created in
setParameters.
|
AsnObject |
snmpGetVariable()
Performs a (blocked) getRequest with the context created in
setParameters.
|
varbind |
snmpGetVariableBinding()
Performs a (blocked) getRequest with the context created in
setParameters.
|
varbind[] |
snmpGetVariableBindings()
Performs a (blocked) getRequest with the context created in
setParameters.
|
AsnObject[] |
snmpGetVariables()
Performs a (blocked) getRequest with the context created in
setParameters.
|
AsnObject |
snmpSetVariable(AsnObject var)
Performs a (blocked) setRequest with the context created in
setParameters.
|
java.lang.String |
toString() |
public void setParameters(java.lang.String host,
int port,
java.lang.String community,
boolean tcp)
public void setParameters(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pass,
java.lang.String contextName,
byte[] contextEngineId,
int proto,
boolean tcp)
public void setObjectID(java.lang.String oid)
public void setObjectIDList(java.lang.String[] oids)
public AsnObject snmpGetVariable()
BlockPdu.getResponseVariable()public AsnObject[] snmpGetVariables()
BlockPdu.getResponseVariables()public varbind snmpGetVariableBinding()
BlockPdu.getResponseVariableBinding()public varbind[] snmpGetVariableBindings()
BlockPdu.getResponseVariableBindings()public varbind snmpGetNextVariableBinding()
BlockPdu.getResponseVariableBinding()public AsnObject snmpSetVariable(AsnObject var)
BlockPdu.getResponseVariable()public java.lang.String toString()
toString in class java.lang.Object