com.activequant.utils.snmp
Class SNMPReporter

java.lang.Object
  extended by com.activequant.utils.snmp.SNMPReporter

public class SNMPReporter
extends Object


Nested Class Summary
static class SNMPReporter.ValueMode
           
 
Constructor Summary
SNMPReporter()
           
SNMPReporter(String host, int port)
           
 
Method Summary
 void addValue(String key, Integer toBeAddedValue)
          Adds a value to a key.
static void main(String[] args)
           
 void registerOID(String key, String suffix, SNMPReporter.ValueMode valMode)
          registers a suffix key combination.
 void setValue(String key, Integer value)
          sets a value in the value map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNMPReporter

public SNMPReporter(String host,
                    int port)
             throws UnknownHostException,
                    IOException
Throws:
UnknownHostException
IOException

SNMPReporter

public SNMPReporter()
             throws UnknownHostException,
                    IOException
Throws:
UnknownHostException
IOException
Method Detail

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.