backend
Class snmpThread

java.lang.Object
  extended byjava.lang.Thread
      extended bybackend.snmpThread
All Implemented Interfaces:
Runnable

public class snmpThread
extends Thread

Threaded function that keeps the SNMP information upto date


Field Summary
static BlackBoard BBMethods
          Interface to the blackboard functions
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
snmpThread(LanNode node)
          Creates a new instance of snmpThread
 
Method Summary
 void run()
          Main starting point of the SNMP threads.
 void snmpGetter(String ip)
          This is the main SNMP information reciver.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BBMethods

public static BlackBoard BBMethods
Interface to the blackboard functions

Constructor Detail

snmpThread

public snmpThread(LanNode node)
Creates a new instance of snmpThread

Parameters:
node - Expects a valid lanNode from the blackboard
Method Detail

run

public void run()
Main starting point of the SNMP threads. For efficeincy it will first check to see if the lannode is up if it is then it will do the snmp calls else it will just place NA into all the locations in the lanNode and return


snmpGetter

public void snmpGetter(String ip)
This is the main SNMP information reciver. It uses the backends snmpGet method to reterive the information. If snmp is not detected it places NA in all the snmp fields.

Parameters:
ip - String containing the ip address of a lanNode