|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.Timestamp
public class Timestamp
This class is used by the SnmpVarBindList
object.
An SnmpVarBindList
time stamp object represents the time stamp when the list was updated
with the response variables.
Constructor Summary | |
---|---|
Timestamp()
The default constructor. |
|
Timestamp(long uptime)
Creates a TimeStamp object using the user parameters. |
|
Timestamp(long uptime,
long when)
Creates a TimeStamp object using the user parameters. |
Method Summary | |
---|---|
Date |
getDate()
Gets the current date. |
long |
getDateTime()
Gets the current date. |
long |
getSysUpTime()
Gets the time (in hundredths of a second) since the network management portion of the system was last re-initialized. |
SnmpTimeticks |
getTimeTicks()
Gets the SnmpTimeticks object corresponding to the TimeStamp object. |
String |
toString()
Returns a String representation of the TimeStamp object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Timestamp()
Sysuptime
is 0.
This simply indicates when this object was created.
public Timestamp(long uptime, long when)
TimeStamp
object using the user parameters.
uptime
- The time (in hundredths of a second) since the
network management portion of the system was last re-initialized.when
- The current time.public Timestamp(long uptime)
TimeStamp
object using the user parameters.
uptime
- The time (in hundredths of a second) since the
network management portion of the system was last re-initialized.Method Detail |
---|
public final SnmpTimeticks getTimeTicks()
SnmpTimeticks
object corresponding to the TimeStamp
object.
SnmpTimeticks
object.public final long getSysUpTime()
sysUpTime
.public final Date getDate()
Date
object representing the current date.public final long getDateTime()
long
representing the current date.public final String toString()
String
representation of the TimeStamp
object.
toString
in class Object
String
representation of the TimeStamp
object.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |