public class UsmTimeTable extends Object implements Serializable
UsmTimeTable
class is a singleton that stores USM user
information as part of the Local Configuration Datastore (LCD).Constructor and Description |
---|
UsmTimeTable(OctetString localEngineID,
int engineBoots) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(UsmTimeEntry entry) |
int |
checkEngineID(OctetString engineID,
boolean discoveryAllowed,
int engineBoots,
int engineTime) |
int |
checkTime(UsmTimeEntry entry) |
int |
getEngineBoots()
The number of times that the SNMP engine has (re-)initialized itself
since snmpEngineID was last configured.
|
int |
getEngineTime()
Returns the number of seconds since the value of
the engineBoots object last changed.
|
UsmTimeEntry |
getEntry(OctetString engineID) |
UsmTimeEntry |
getLocalTime() |
UsmTimeEntry |
getTime(OctetString engineID) |
void |
removeEntry(OctetString engineID)
Removes the specified engine ID from the time cache.
|
void |
reset() |
void |
setEngineBoots(int engineBoots)
Sets the number of engine boots.
|
void |
setLocalTime(UsmTimeEntry localTime) |
public UsmTimeTable(OctetString localEngineID, int engineBoots)
public void addEntry(UsmTimeEntry entry)
public UsmTimeEntry getEntry(OctetString engineID)
public UsmTimeEntry getLocalTime()
public void setLocalTime(UsmTimeEntry localTime)
public void setEngineBoots(int engineBoots)
engineBoots
- the number of engine boots.public int getEngineTime()
public int getEngineBoots()
public UsmTimeEntry getTime(OctetString engineID)
public void removeEntry(OctetString engineID)
engineID
- the engine ID of the remote SNMP engine to remove from this time cache.public int checkEngineID(OctetString engineID, boolean discoveryAllowed, int engineBoots, int engineTime)
public int checkTime(UsmTimeEntry entry)
public void reset()
Copyright © 2020 SNMP4J.org. All rights reserved.