com.activequant.utils.snmp
Class SNMPReporter
java.lang.Object
com.activequant.utils.snmp.SNMPReporter
public class SNMPReporter
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SNMPReporter
public SNMPReporter(String host,
int port)
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
SNMPReporter
public SNMPReporter()
throws UnknownHostException,
IOException
- Throws:
UnknownHostException
IOException
registerOID
public void registerOID(String key,
String suffix,
SNMPReporter.ValueMode valMode)
- registers a suffix key combination.
- Parameters:
key - suffix -
addValue
public void addValue(String key,
Integer toBeAddedValue)
- Adds a value to a key. If the key does not yet exist, it will create it
with a start value of zero and then add the to-be-added value.
- Parameters:
key - toBeAddedValue -
setValue
public void setValue(String key,
Integer value)
- sets a value in the value map.
- Parameters:
key - value -
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.