Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JoeSnmpStrategy.RegistrationInfo
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description JoeSnmpStrategy()
-
Method Summary
-
-
-
Method Detail
-
createWalker
public SnmpWalker createWalker(SnmpAgentConfig snmpAgentConfig, String name, CollectionTracker tracker)
- Specified by:
createWalker
in interfaceSnmpStrategy
-
set
public SnmpValue set(SnmpAgentConfig snmpAgentConfig, SnmpObjId oid, SnmpValue value)
- Specified by:
set
in interfaceSnmpStrategy
-
set
public SnmpValue[] set(SnmpAgentConfig snmpAgentConfig, SnmpObjId[] oids, SnmpValue[] values)
- Specified by:
set
in interfaceSnmpStrategy
-
get
public SnmpValue get(SnmpAgentConfig snmpAgentConfig, SnmpObjId oid)
- Specified by:
get
in interfaceSnmpStrategy
-
get
public SnmpValue[] get(SnmpAgentConfig snmpAgentConfig, SnmpObjId[] oids)
- Specified by:
get
in interfaceSnmpStrategy
-
getAsync
public CompletableFuture<SnmpValue[]> getAsync(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
- Specified by:
getAsync
in interfaceSnmpStrategy
-
getNext
public SnmpValue getNext(SnmpAgentConfig snmpAgentConfig, SnmpObjId oid)
- Specified by:
getNext
in interfaceSnmpStrategy
-
getNext
public SnmpValue[] getNext(SnmpAgentConfig snmpAgentConfig, SnmpObjId[] oids)
- Specified by:
getNext
in interfaceSnmpStrategy
-
getBulk
public SnmpValue[] getBulk(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
- Specified by:
getBulk
in interfaceSnmpStrategy
-
registerForTraps
public void registerForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort) throws IOException
- Specified by:
registerForTraps
in interfaceSnmpStrategy
- Throws:
IOException
-
registerForTraps
public void registerForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort, List<SnmpV3User> snmpv3Users) throws IOException
- Specified by:
registerForTraps
in interfaceSnmpStrategy
- Throws:
IOException
-
registerForTraps
public void registerForTraps(TrapNotificationListener listener, int snmpTrapPort) throws IOException
- Specified by:
registerForTraps
in interfaceSnmpStrategy
- Throws:
IOException
-
unregisterForTraps
public void unregisterForTraps(TrapNotificationListener listener)
- Specified by:
unregisterForTraps
in interfaceSnmpStrategy
-
getValueFactory
public SnmpValueFactory getValueFactory()
- Specified by:
getValueFactory
in interfaceSnmpStrategy
-
getV1TrapBuilder
public SnmpV1TrapBuilder getV1TrapBuilder()
- Specified by:
getV1TrapBuilder
in interfaceSnmpStrategy
-
getV2TrapBuilder
public SnmpTrapBuilder getV2TrapBuilder()
- Specified by:
getV2TrapBuilder
in interfaceSnmpStrategy
-
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 interfaceSnmpStrategy
-
getV2InformBuilder
public SnmpV2TrapBuilder getV2InformBuilder()
- Specified by:
getV2InformBuilder
in interfaceSnmpStrategy
-
getV3InformBuilder
public SnmpV3TrapBuilder getV3InformBuilder()
- Specified by:
getV3InformBuilder
in interfaceSnmpStrategy
-
getLocalEngineID
public byte[] getLocalEngineID()
- Specified by:
getLocalEngineID
in interfaceSnmpStrategy
-
-