JoeSNMP API 0.3.4

org.opennms.protocols.snmp
Class SnmpPortal.Receiver

java.lang.Object
  extended by java.lang.Thread
      extended by org.opennms.protocols.snmp.SnmpPortal.Receiver
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SnmpPortal

private class SnmpPortal.Receiver
extends java.lang.Thread

Defines the inner class that monitors the datagram socket and receives all the PDU responses. If an exception is generated then it is saved in m_why and can be re-generated with a call to raise().


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.lang.Thread m_fastReceiver
           
private  java.util.LinkedList m_fastReceiverQ
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SnmpPortal.Receiver(java.lang.String name)
           
 
Method Summary
private  void notifyOnClose()
           
 void run()
          The run method is an infinite loop method that receives all datagrams for the session.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_fastReceiverQ

private final java.util.LinkedList m_fastReceiverQ

m_fastReceiver

private final java.lang.Thread m_fastReceiver
Constructor Detail

SnmpPortal.Receiver

public SnmpPortal.Receiver(java.lang.String name)
Method Detail

notifyOnClose

private void notifyOnClose()

run

public void run()
The run method is an infinite loop method that receives all datagrams for the session. If an unrecoverable error occurs then the m_handler is informed of the error If a pdu is recovered from the channel then the associated handler is invoked to process the pdu.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
SnmpPacketHandler

JoeSNMP API 0.3.4

Generated by iurt on 2011.