|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread backend.backEnd
This class is the backend thread that spawns upto 15 ping thereads and 15 snmp threads. It controls the time interval inbetween each snmp and ping interval. It also has built in SNMP functions that allow for retervial of a remotes computers information and the ability to set specific information as well.
Field Summary | |
static boolean |
pauseFlag
a boolean that if set to false will do continous monitoring and if true it will pause the monitoring |
static boolean |
stopFlag
A boolean if true means pinging and snmp calls should stop false means pinging and snmp calls should continue |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
backEnd()
this second constructor is needed for the mibBrowser |
|
backEnd(BlackBoard fromMain)
Constructor which enables the interfaces to the blackbaord |
Method Summary | |
void |
processTrap(snmp.SNMPTrapPDU pdu)
function that handles all the SNMP traps recived |
void |
run()
This is where thread execution starts |
static String |
snmpGet(String OID,
String ipAddress,
String community)
The simple version of snmpGet which just returns the value of the snmp calls |
static String |
snmpGetExtended(String OID,
String ipAddress,
String community)
Get extended information about the snmp OID. |
static Vector |
snmpGetNext(String OID,
String ipAddress,
String community)
GET NEXT OID... |
static String |
snmpGetTable(String OID,
String ipAddress,
String community)
Used to get a SNMP table |
boolean |
snmpHasAgent(String ip)
|
static boolean |
snmpHasAgent(String ip,
String community)
This function is used to check if a specific computer has SNMP installed or not |
static boolean |
snmpSet(String value,
String OID,
String host,
String community)
A function that used to set SNMP values given the OID to set |
void |
updateAllNodes()
This it the main backend loop which continously monitors the computers using ping and snmp calls |
void |
updateNode(LanNode currentNode)
This function updates the current node being passed in. |
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 |
public static boolean stopFlag
public static boolean pauseFlag
Constructor Detail |
public backEnd(BlackBoard fromMain)
fromMain
- Expects the blackboard class which was created in mainpublic backEnd()
Method Detail |
public void run()
run
in interface Runnable
public void updateAllNodes()
public static String snmpGet(String OID, String ipAddress, String community)
OID
- A string containing a valid OID numberipAddress
- String containing a valid ip address or hostname
public static boolean snmpSet(String value, String OID, String host, String community)
value
- This is the value that is going to be setOID
- OID in string formathost
- Contains the ip address or host name of the computer to
set the value to.
public boolean snmpHasAgent(String ip)
public static boolean snmpHasAgent(String ip, String community)
ip
- String containing either the hostname or ipaddress
public static String snmpGetExtended(String OID, String ipAddress, String community)
OID
- String containing the OID valueipAddress
- String containing either the ip address or host name
public static Vector snmpGetNext(String OID, String ipAddress, String community)
public static String snmpGetTable(String OID, String ipAddress, String community)
OID
- String value containing the OIDipAddress
- String address containing either an ip address or hostname
public void processTrap(snmp.SNMPTrapPDU pdu)
processTrap
in interface snmp.SNMPTrapListener
pdu
- interface of information about the trap that came inpublic void updateNode(LanNode currentNode)
currentNode
- LanNode containing the node to be updated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |