public class MockSnmpStrategy extends Object implements SnmpStrategy
Constructor and Description |
---|
MockSnmpStrategy() |
public SnmpWalker createWalker(SnmpAgentConfig agentConfig, String name, CollectionTracker tracker)
createWalker
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 SnmpStrategy
public SnmpValue[] get(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
get
in interface SnmpStrategy
public SnmpValue getNext(SnmpAgentConfig agentConfig, SnmpObjId oid)
getNext
in interface SnmpStrategy
public SnmpValue[] getNext(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
getNext
in interface SnmpStrategy
public SnmpValue[] getBulk(SnmpAgentConfig agentConfig, SnmpObjId[] oids)
getBulk
in interface SnmpStrategy
public void registerForTraps(TrapNotificationListener listener, TrapProcessorFactory processorFactory, InetAddress address, int snmpTrapPort) throws IOException
registerForTraps
in interface SnmpStrategy
IOException
public void registerForTraps(TrapNotificationListener listener, TrapProcessorFactory processorFactory, int snmpTrapPort) throws IOException
registerForTraps
in interface SnmpStrategy
IOException
public void registerForTraps(TrapNotificationListener listener, TrapProcessorFactory processorFactory, InetAddress address, int snmpTrapPort, List<SnmpV3User> snmpv3Users) throws IOException
registerForTraps
in interface SnmpStrategy
IOException
public void unregisterForTraps(TrapNotificationListener listener, InetAddress address, int snmpTrapPort) throws IOException
unregisterForTraps
in interface SnmpStrategy
IOException
public void unregisterForTraps(TrapNotificationListener listener, int snmpTrapPort) throws IOException
unregisterForTraps
in interface SnmpStrategy
IOException
public SnmpValueFactory getValueFactory()
getValueFactory
in interface SnmpStrategy
public SnmpV1TrapBuilder getV1TrapBuilder()
getV1TrapBuilder
in interface SnmpStrategy
public SnmpTrapBuilder getV2TrapBuilder()
getV2TrapBuilder
in interface SnmpStrategy
public SnmpV3TrapBuilder getV3TrapBuilder()
getV3TrapBuilder
in interface SnmpStrategy
public SnmpV2TrapBuilder getV2InformBuilder()
getV2InformBuilder
in interface SnmpStrategy
public SnmpV3TrapBuilder getV3InformBuilder()
getV3InformBuilder
in interface SnmpStrategy
public byte[] getLocalEngineID()
getLocalEngineID
in interface SnmpStrategy
public static void setDataForAddress(SnmpAgentAddress agentAddress, org.springframework.core.io.Resource resource) throws IOException
IOException
public static void removeHost(SnmpAgentAddress agentAddr)
public static void resetData()
Copyright © 2015. All Rights Reserved.