org.opennms.netmgt.snmp
Class SnmpUtils
java.lang.Object
org.opennms.netmgt.snmp.SnmpUtils
public class SnmpUtils
- extends Object
|
Method Summary |
static SnmpWalker |
createWalker(SnmpAgentConfig agentConfig,
String name,
CollectionTracker tracker)
|
static SnmpWalker |
createWalker(SnmpAgentConfig agentConfig,
String name,
CollectionTracker[] trackers)
|
static SnmpValue |
get(SnmpAgentConfig agentConfig,
SnmpObjId oid)
|
static SnmpValue[] |
get(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
|
static SnmpValue[] |
getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
|
static List<SnmpValue> |
getColumns(SnmpAgentConfig agentConfig,
String name,
SnmpObjId oid)
|
static Properties |
getConfig()
|
static SnmpValue |
getNext(SnmpAgentConfig agentConfig,
SnmpObjId oid)
|
static SnmpValue[] |
getNext(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
|
static Map<SnmpInstId,SnmpValue> |
getOidValues(SnmpAgentConfig agentConfig,
String name,
SnmpObjId oid)
|
static SnmpStrategy |
getStrategy()
|
static SnmpV1TrapBuilder |
getV1TrapBuilder()
|
static SnmpTrapBuilder |
getV2TrapBuilder()
|
static SnmpValueFactory |
getValueFactory()
|
static void |
registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
|
static SnmpValue[] |
set(SnmpAgentConfig agentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
|
static SnmpValue |
set(SnmpAgentConfig agentConfig,
SnmpObjId oid,
SnmpValue value)
|
static void |
setConfig(Properties config)
|
static void |
unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpUtils
public SnmpUtils()
createWalker
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig,
String name,
CollectionTracker[] trackers)
createWalker
public static SnmpWalker createWalker(SnmpAgentConfig agentConfig,
String name,
CollectionTracker tracker)
get
public static SnmpValue get(SnmpAgentConfig agentConfig,
SnmpObjId oid)
get
public static SnmpValue[] get(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
getNext
public static SnmpValue getNext(SnmpAgentConfig agentConfig,
SnmpObjId oid)
getNext
public static SnmpValue[] getNext(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
getBulk
public static SnmpValue[] getBulk(SnmpAgentConfig agentConfig,
SnmpObjId[] oids)
set
public static SnmpValue set(SnmpAgentConfig agentConfig,
SnmpObjId oid,
SnmpValue value)
set
public static SnmpValue[] set(SnmpAgentConfig agentConfig,
SnmpObjId[] oids,
SnmpValue[] values)
getConfig
public static Properties getConfig()
getColumns
public static List<SnmpValue> getColumns(SnmpAgentConfig agentConfig,
String name,
SnmpObjId oid)
throws InterruptedException
- Throws:
InterruptedException
getOidValues
public static Map<SnmpInstId,SnmpValue> getOidValues(SnmpAgentConfig agentConfig,
String name,
SnmpObjId oid)
throws InterruptedException
- Throws:
InterruptedException
setConfig
public static void setConfig(Properties config)
getStrategy
public static SnmpStrategy getStrategy()
registerForTraps
public static void registerForTraps(TrapNotificationListener listener,
TrapProcessorFactory processorFactory,
int snmpTrapPort)
throws IOException
- Throws:
IOException
unregisterForTraps
public static void unregisterForTraps(TrapNotificationListener listener,
int snmpTrapPort)
throws IOException
- Throws:
IOException
getValueFactory
public static SnmpValueFactory getValueFactory()
getV1TrapBuilder
public static SnmpV1TrapBuilder getV1TrapBuilder()
getV2TrapBuilder
public static SnmpTrapBuilder getV2TrapBuilder()
Copyright ? 2008. All Rights Reserved.