|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opennms.netmgt.snmp.snmp4j.Snmp4JStrategy
public class Snmp4JStrategy
| Nested Class Summary | |
|---|---|
static class |
Snmp4JStrategy.RegistrationInfo
|
| Constructor Summary | |
|---|---|
Snmp4JStrategy()
|
|
| Method Summary | |
|---|---|
protected SnmpAgentConfig |
buildAgentConfig(String address,
int port,
String community,
org.snmp4j.PDU pdu)
|
protected org.snmp4j.PDU |
buildPdu(Snmp4JAgentConfig agentConfig,
int pduType,
SnmpObjId[] oids,
SnmpValue[] values)
|
SnmpWalker |
createWalker(SnmpAgentConfig snmpAgentConfig,
String name,
CollectionTracker tracker)
SNMP4J createWalker implemenetation. |
SnmpValue |
get(SnmpAgentConfig agentConfig,
SnmpObjId oid)
SNMP4J get helper that takes a single SnmpObjId and calls get with an array.lenght =1 and returns the first element of the returned array of SnmpValue. |
SnmpValue[] |
get(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
SnmpGet implementation. |
SnmpValue[] |
getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oid)
Not yet implemented. |
SnmpValue |
getNext(SnmpAgentConfig agentConfig,
SnmpObjId oid)
SNMP4J getNext implementation |
SnmpValue[] |
getNext(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
SNMP GetNext implementation. |
SnmpV1TrapBuilder |
getV1TrapBuilder()
|
SnmpTrapBuilder |
getV2TrapBuilder()
|
SnmpValueFactory |
getValueFactory()
|
void |
registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
|
protected SnmpValue[] |
send(Snmp4JAgentConfig agentConfig,
org.snmp4j.PDU pdu,
boolean expectResponse)
Sends and SNMP4J request pdu. |
void |
sendTest(String agentAddress,
int port,
String community,
org.snmp4j.PDU pdu)
|
SnmpValue[] |
set(SnmpAgentConfig agentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
|
SnmpValue |
set(SnmpAgentConfig agentConfig,
SnmpObjId oid,
SnmpValue value)
|
void |
unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Snmp4JStrategy()
| Method Detail |
|---|
public SnmpWalker createWalker(SnmpAgentConfig snmpAgentConfig,
String name,
CollectionTracker tracker)
createWalker in interface SnmpStrategysnmpAgentConfig - name - tracker -
public SnmpValue[] getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oid)
getBulk in interface SnmpStrategy
public SnmpValue set(SnmpAgentConfig agentConfig,
SnmpObjId oid,
SnmpValue value)
set in interface SnmpStrategy
public SnmpValue[] set(SnmpAgentConfig agentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
set in interface SnmpStrategy
public SnmpValue get(SnmpAgentConfig agentConfig,
SnmpObjId oid)
get in interface SnmpStrategyagentConfig - oid -
public SnmpValue[] get(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
get in interface SnmpStrategyagentConfig - oids -
public SnmpValue getNext(SnmpAgentConfig agentConfig,
SnmpObjId oid)
getNext in interface SnmpStrategyagentConfig - oid -
public SnmpValue[] getNext(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
getNext in interface SnmpStrategyagentConfig - oids -
protected SnmpValue[] send(Snmp4JAgentConfig agentConfig,
org.snmp4j.PDU pdu,
boolean expectResponse)
agentConfig - pduType - TODOoids - values - can be null
protected org.snmp4j.PDU buildPdu(Snmp4JAgentConfig agentConfig,
int pduType,
SnmpObjId[] oids,
SnmpValue[] values)
public SnmpValueFactory getValueFactory()
getValueFactory in interface SnmpStrategy
public void registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
throws IOException
registerForTraps in interface SnmpStrategyIOException
public void unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
throws IOException
unregisterForTraps in interface SnmpStrategyIOExceptionpublic SnmpV1TrapBuilder getV1TrapBuilder()
getV1TrapBuilder in interface SnmpStrategypublic SnmpTrapBuilder getV2TrapBuilder()
getV2TrapBuilder in interface SnmpStrategy
protected SnmpAgentConfig buildAgentConfig(String address,
int port,
String community,
org.snmp4j.PDU pdu)
throws UnknownHostException
UnknownHostException
public void sendTest(String agentAddress,
int port,
String community,
org.snmp4j.PDU pdu)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||