| 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ireasoning.protocol.ListenerManager
com.ireasoning.protocol.snmp.SnmpPoller
This class launches a new thread and does periodical SNMP polling against agent. After instanstiated and set polling interval, it can keep sending snmp get or getnext requests to agent periodically.
| Field Summary | 
| Fields inherited from class com.ireasoning.protocol.ListenerManager | 
_listeners | 
| Constructor Summary | |
SnmpPoller(SnmpSession session)
Constructs an SnmpPoller instance  | 
|
| Method Summary | |
 Exception | 
getLastException()
Checks if any exception occurred  | 
 void | 
pause()
Pauses polling, which can be resumed by calling resume()  | 
 void | 
resume()
Resumes polling  | 
 void | 
run()
Method required by Runnable interface.  | 
 void | 
snmpGetNextPoll(SnmpOID[] oids,
                long interval)
Starts polling (SNMP GetNextRequest) passed oids against SNMP agent periodically  | 
 void | 
snmpGetNextPoll(String[] oids,
                long interval)
Starts polling (SNMP GetNextRequest) passed oids against SNMP agent periodically  | 
 void | 
snmpGetPoll(SnmpOID[] oids,
            long interval)
Starts polling (SNMP GetRequest) passed oids against SNMP agent periodically  | 
 void | 
snmpGetPoll(String[] oids,
            long interval)
Starts polling (SNMP GetRequest) passed oids against SNMP agent periodically  | 
 void | 
stop()
Stops polling  | 
| Methods inherited from class com.ireasoning.protocol.ListenerManager | 
addListener, listenerExists, notifyListeners, notifyListeners, removeListener | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SnmpPoller(SnmpSession session)
session - an SnmpSession instance, which has been initialized and
 connected to a remote agent| Method Detail | 
public void snmpGetPoll(SnmpOID[] oids,
                        long interval)
interval - The frequency of polling (in seconds).
public void snmpGetPoll(String[] oids,
                        long interval)
interval - The frequency of polling (in seconds).
public void snmpGetNextPoll(SnmpOID[] oids,
                            long interval)
interval - The frequency of polling (in seconds).
public void snmpGetNextPoll(String[] oids,
                            long interval)
interval - The frequency of polling (in seconds).public void run()
run in interface Runnablepublic void pause()
resume()public void resume()
public void stop()
public Exception getLastException()
  | 
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||