Package uk.co.westhawk.snmp.pdu
Class UpSincePdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.GetPdu
uk.co.westhawk.snmp.pdu.UpSincePdu
The UpSincePdu class will send a Get request for the sysUpTime and
will calculate that date the system rebooted the last time.
- Version:
- $Revision: 3.16 $ $Date: 2006/11/29 16:12:50 $
- Author:
- Tim Panton
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpSincePdu
(SnmpContextBasisFace con, Observer o) Constructor that will send the request immediately. -
Method Summary
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, toString, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Field Details
-
SYSUPTIME
The oid of sysUpTime- See Also:
-
-
Constructor Details
-
UpSincePdu
Constructor that will send the request immediately.- Parameters:
con
- The context of the requesto
- the Observer that will be notified when the answer is received- Throws:
PduException
IOException
-
-
Method Details
-
getDate
Returns the date when the system went up, (sysUpTime).- Returns:
- the date
-