public class UpSincePdu extends GetPdu
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SYSUPTIME
The oid of sysUpTime
|
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId| Constructor and Description |
|---|
UpSincePdu(SnmpContextBasisFace con,
java.util.Observer o)
Constructor that will send the request immediately.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Returns the date when the system went up, (sysUpTime).
|
protected void |
new_value(int n,
varbind res)
The value of the request is set.
|
protected void |
tell_them()
This method notifies all observers.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, toString, waitForSelfpublic static final java.lang.String SYSUPTIME
public UpSincePdu(SnmpContextBasisFace con, java.util.Observer o) throws PduException, java.io.IOException
con - The context of the requesto - the Observer that will be notified when the answer is receivedPduExceptionjava.io.IOExceptionpublic java.util.Date getDate()
protected void new_value(int n,
varbind res)
new_value in class Pdun - the index of the valueres - the valuePdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)