public class UsmTimeEntry
extends java.lang.Object
implements java.io.Serializable
UsmTimeEntry
class represents time synchronization
information associated with an engine ID.Modifier and Type | Field and Description |
---|---|
private int |
engineBoots |
private OctetString |
engineID |
private int |
latestReceivedTime |
private static long |
serialVersionUID |
private int |
timeDiff |
Constructor and Description |
---|
UsmTimeEntry(OctetString engineID,
int engineBoots,
int engineTime)
Creates a time entry with engine ID, engine boots and time.
|
Modifier and Type | Method and Description |
---|---|
int |
getEngineBoots() |
OctetString |
getEngineID() |
int |
getLatestReceivedTime()
Gets the time when a message has been received last from the associated
SNMP engine.
|
int |
getTimeDiff() |
void |
setEngineBoots(int engineBoots) |
void |
setEngineTime(int engineTime)
Sets the engine time which also sets the last received engine time
to the supplied value.
|
void |
setLatestReceivedTime(int latestReceivedTime)
Sets the time when a message has been received last from the associated
SNMP engine.
|
void |
setTimeDiff(int timeDiff) |
private static final long serialVersionUID
private OctetString engineID
private int engineBoots
private int timeDiff
private int latestReceivedTime
public UsmTimeEntry(OctetString engineID, int engineBoots, int engineTime)
engineID
- the engine ID for which time synchronization information is created.engineBoots
- the number of engine boots of the engine.engineTime
- the time in seconds elapsed since the last reboot of the engine.public OctetString getEngineID()
public int getEngineBoots()
public void setEngineBoots(int engineBoots)
public int getTimeDiff()
public void setTimeDiff(int timeDiff)
public int getLatestReceivedTime()
public void setLatestReceivedTime(int latestReceivedTime)
latestReceivedTime
- the engine time in seconds.public void setEngineTime(int engineTime)
engineTime
- the time in seconds elapsed since the last reboot of the engine.