org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpStrategy
java.lang.Object
org.opennms.netmgt.snmp.joesnmp.JoeSnmpStrategy
- All Implemented Interfaces:
- SnmpStrategy
public class JoeSnmpStrategy
- extends Object
- implements SnmpStrategy
|
Method Summary |
SnmpWalker |
createWalker(SnmpAgentConfig snmpAgentConfig,
String name,
CollectionTracker tracker)
|
SnmpValue |
get(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid)
|
SnmpValue[] |
get(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids)
|
SnmpValue[] |
getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
|
byte[] |
getLocalEngineID()
|
SnmpValue |
getNext(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid)
|
SnmpValue[] |
getNext(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids)
|
SnmpV1TrapBuilder |
getV1TrapBuilder()
|
SnmpV2TrapBuilder |
getV2InformBuilder()
|
SnmpTrapBuilder |
getV2TrapBuilder()
|
SnmpV3TrapBuilder |
getV3InformBuilder()
|
SnmpV3TrapBuilder |
getV3TrapBuilder()
|
SnmpValueFactory |
getValueFactory()
|
void |
registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
InetAddress address,
int snmpTrapPort)
|
void |
registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
InetAddress address,
int snmpTrapPort,
List<SnmpV3User> snmpv3Users)
|
void |
registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
|
static void |
send(String destAddr,
int destPort,
String community,
SnmpPduRequest pdu)
|
static void |
send(String destAddr,
int destPort,
String community,
SnmpPduTrap trap)
|
static void |
sendTest(String destAddr,
int destPort,
String community,
SnmpPduRequest pdu)
|
static void |
sendTest(String destAddr,
int destPort,
String community,
SnmpPduTrap pdu)
|
SnmpValue[] |
set(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
|
SnmpValue |
set(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid,
SnmpValue value)
|
void |
unregisterForTraps(TrapNotificationListener listener,
InetAddress address,
int snmpTrapPort)
|
void |
unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoeSnmpStrategy
public JoeSnmpStrategy()
createWalker
public SnmpWalker createWalker(SnmpAgentConfig snmpAgentConfig,
String name,
CollectionTracker tracker)
- Specified by:
createWalker in interface SnmpStrategy
set
public SnmpValue set(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid,
SnmpValue value)
- Specified by:
set in interface SnmpStrategy
set
public SnmpValue[] set(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
- Specified by:
set in interface SnmpStrategy
get
public SnmpValue get(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid)
- Specified by:
get in interface SnmpStrategy
get
public SnmpValue[] get(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids)
- Specified by:
get in interface SnmpStrategy
getNext
public SnmpValue getNext(SnmpAgentConfig snmpAgentConfig,
SnmpObjId oid)
- Specified by:
getNext in interface SnmpStrategy
getNext
public SnmpValue[] getNext(SnmpAgentConfig snmpAgentConfig,
SnmpObjId[] oids)
- Specified by:
getNext in interface SnmpStrategy
getBulk
public SnmpValue[] getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
- Specified by:
getBulk in interface SnmpStrategy
registerForTraps
public void registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
InetAddress address,
int snmpTrapPort)
throws IOException
- Specified by:
registerForTraps in interface SnmpStrategy
- Throws:
IOException
registerForTraps
public void registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
InetAddress address,
int snmpTrapPort,
List<SnmpV3User> snmpv3Users)
throws IOException
- Specified by:
registerForTraps in interface SnmpStrategy
- Throws:
IOException
registerForTraps
public void registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
throws IOException
- Specified by:
registerForTraps in interface SnmpStrategy
- Throws:
IOException
unregisterForTraps
public void unregisterForTraps(TrapNotificationListener listener,
InetAddress address,
int snmpTrapPort)
- Specified by:
unregisterForTraps in interface SnmpStrategy
unregisterForTraps
public void unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
- Specified by:
unregisterForTraps in interface SnmpStrategy
getValueFactory
public SnmpValueFactory getValueFactory()
- Specified by:
getValueFactory in interface SnmpStrategy
getV1TrapBuilder
public SnmpV1TrapBuilder getV1TrapBuilder()
- Specified by:
getV1TrapBuilder in interface SnmpStrategy
getV2TrapBuilder
public SnmpTrapBuilder getV2TrapBuilder()
- Specified by:
getV2TrapBuilder in interface SnmpStrategy
send
public static void send(String destAddr,
int destPort,
String community,
SnmpPduTrap trap)
throws Exception
- Throws:
Exception
send
public static void send(String destAddr,
int destPort,
String community,
SnmpPduRequest pdu)
throws Exception
- Throws:
Exception
sendTest
public static void sendTest(String destAddr,
int destPort,
String community,
SnmpPduRequest pdu)
throws UnknownHostException
- Throws:
UnknownHostException
sendTest
public static void sendTest(String destAddr,
int destPort,
String community,
SnmpPduTrap pdu)
throws UnknownHostException
- Throws:
UnknownHostException
getV3TrapBuilder
public SnmpV3TrapBuilder getV3TrapBuilder()
- Specified by:
getV3TrapBuilder in interface SnmpStrategy
getV2InformBuilder
public SnmpV2TrapBuilder getV2InformBuilder()
- Specified by:
getV2InformBuilder in interface SnmpStrategy
getV3InformBuilder
public SnmpV3TrapBuilder getV3InformBuilder()
- Specified by:
getV3InformBuilder in interface SnmpStrategy
getLocalEngineID
public byte[] getLocalEngineID()
- Specified by:
getLocalEngineID in interface SnmpStrategy
Copyright © 2011. All Rights Reserved.