com.ibm.di.eventhandler
Class SNMPEventHandler

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
          extended by com.ibm.di.eventhandler.Switchboard
              extended by com.ibm.di.eventhandler.SNMPEventHandler
All Implemented Interfaces:
VersionInfoInterface, ActionListener, Runnable, EventListener

public class SNMPEventHandler
extends Switchboard


Nested Class Summary
 class SNMPEventHandler.EmptyValue
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SNMPEventHandler()
           
SNMPEventHandler(SNMPEventHandler server, DatagramPacket packet)
           
 
Method Summary
 void addEventParams(Entry entry, com.tivoli.snmp.SnmpPDU pdu)
           
 void addVarBind(Entry entry, com.tivoli.snmp.SnmpPDU pdu)
          Add the varbind list to the entry attributes
 com.tivoli.snmp.data.BadValue createBadValue()
          convenience methods to create SNMP object types
 com.tivoli.snmp.data.Boolean createBoolean(boolean value)
           
 com.tivoli.snmp.data.Counter createCounter(long value)
           
 com.tivoli.snmp.data.Counter64 createCounter64(long value)
           
 com.tivoli.snmp.data.FixedLengthOctetString createFixedLengthOctetString(String value)
           
 com.tivoli.snmp.data.FullCounter64 createFullCounter64(BigInteger value)
           
 com.tivoli.snmp.data.Gauge createGauge(long value)
           
 com.tivoli.snmp.data.IPAddress createIPAddress(String value)
           
 com.tivoli.snmp.data.NoChange createNoChange()
           
 com.tivoli.snmp.data.NoSuchInstance createNoSuchInstance()
           
 com.tivoli.snmp.data.NoSuchObject createNoSuchObject()
           
 com.tivoli.snmp.data.NotSupported createNotSupported()
           
 com.tivoli.snmp.data.Null createNull()
           
 com.tivoli.snmp.data.OctetString createOctetString(String value)
           
 com.tivoli.snmp.data.OID createOID(String value)
           
 com.tivoli.snmp.data.Opaque createOpaque(byte[] value)
           
 com.tivoli.snmp.data.TimeTicks createTimeTicks(long value)
           
 void getEventParams(Entry entry, com.tivoli.snmp.SnmpPDU pdu)
           
 String getVersion()
          Return version information
 void handleEvent()
           
 void run()
           
 void sendPacket(DatagramPacket packet)
           
 void setExitRequested(boolean value)
          Override setExitRequested
 
Methods inherited from class com.ibm.di.eventhandler.Switchboard
actionPerformed, addEventListener, close, debug, debugBreak, debugMsg, dispatchEvent, dump, dumpEntry, dumpProperties, enableDebug, exitProcess, exitProcess, exitRequested, fireEvent, getConfiguration, getDebug, getDebugger, getEventHandlerListener, getExitMessage, getExitRequested, getInterceptor, getLog, getLogCategory, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParam, getParent, getProperty, getRecording, getScriptEngine, getServer, getStats, getTaskName, logmsg, logmsg, removeEventHandlerListener, removeEventListener, setConfiguration, setDebug, setDebugger, setEventHandlerListener, setExitMessage, setInterceptor, setLog, setLogCategory, setParam, setParent, setProperty, setRecording, start
 
Methods inherited from class com.ibm.di.server.Monitor
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNMPEventHandler

public SNMPEventHandler()

SNMPEventHandler

public SNMPEventHandler(SNMPEventHandler server,
                        DatagramPacket packet)
Method Detail

sendPacket

public void sendPacket(DatagramPacket packet)
                throws Exception
Throws:
Exception

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

handleEvent

public void handleEvent()

addEventParams

public void addEventParams(Entry entry,
                           com.tivoli.snmp.SnmpPDU pdu)
                    throws Exception
Throws:
Exception

getEventParams

public void getEventParams(Entry entry,
                           com.tivoli.snmp.SnmpPDU pdu)
                    throws Exception
Throws:
Exception

addVarBind

public void addVarBind(Entry entry,
                       com.tivoli.snmp.SnmpPDU pdu)
Add the varbind list to the entry attributes


createBadValue

public com.tivoli.snmp.data.BadValue createBadValue()
convenience methods to create SNMP object types


createBoolean

public com.tivoli.snmp.data.Boolean createBoolean(boolean value)

createCounter

public com.tivoli.snmp.data.Counter createCounter(long value)

createCounter64

public com.tivoli.snmp.data.Counter64 createCounter64(long value)

createFixedLengthOctetString

public com.tivoli.snmp.data.FixedLengthOctetString createFixedLengthOctetString(String value)

createFullCounter64

public com.tivoli.snmp.data.FullCounter64 createFullCounter64(BigInteger value)

createGauge

public com.tivoli.snmp.data.Gauge createGauge(long value)

createIPAddress

public com.tivoli.snmp.data.IPAddress createIPAddress(String value)

createNoChange

public com.tivoli.snmp.data.NoChange createNoChange()

createNoSuchInstance

public com.tivoli.snmp.data.NoSuchInstance createNoSuchInstance()

createNoSuchObject

public com.tivoli.snmp.data.NoSuchObject createNoSuchObject()

createNotSupported

public com.tivoli.snmp.data.NotSupported createNotSupported()

createNull

public com.tivoli.snmp.data.Null createNull()

createOctetString

public com.tivoli.snmp.data.OctetString createOctetString(String value)

createOID

public com.tivoli.snmp.data.OID createOID(String value)

createOpaque

public com.tivoli.snmp.data.Opaque createOpaque(byte[] value)

createTimeTicks

public com.tivoli.snmp.data.TimeTicks createTimeTicks(long value)

setExitRequested

public void setExitRequested(boolean value)
Override setExitRequested

Overrides:
setExitRequested in class Switchboard

getVersion

public String getVersion()
Return version information