public class SimpleUsmAgent extends java.lang.Object implements UsmAgent
Users are advised and encouraged to provide a better, more accurate implementation of UsmAgent.
SnmpContextv3
MYFAKEHOSTNAME
Constructor and Description |
---|
SimpleUsmAgent() |
Modifier and Type | Method and Description |
---|---|
int |
getSnmpEngineBoots()
Returns the authoritative Engine Boots.
|
java.lang.String |
getSnmpEngineId()
Returns the authoritative SNMP Engine ID.
|
int |
getSnmpEngineTime()
Returns the authoritative Engine Time.
|
long |
getUsmStatsNotInTimeWindows()
Returns the value of the usmStatsNotInTimeWindows counter.
|
long |
getUsmStatsUnknownEngineIDs()
Returns the value of the usmStatsUnknownEngineIDs counter.
|
void |
setSnmpContext(SnmpContextv3Basis c)
Sets the SNMP context.
|
void |
setSnmpEngineBoots(int boots) |
void |
setSnmpEngineId(java.lang.String snmpEngineId) |
void |
setSnmpEngineTime(int time)
Returns the authoritative Engine Time.
|
void |
setUsmStatsNotInTimeWindows(int usmStatsNotInTimeWindows) |
void |
setUsmStatsUnknownEngineIDs(int usmStatsUnknownEngineIDs) |
public void setSnmpEngineId(java.lang.String snmpEngineId)
public java.lang.String getSnmpEngineId()
UsmAgent
The Engine ID is the (case insensitive) string representation of a hexadecimal number, without any prefix, for example 010000a1d41e4946.
getSnmpEngineId
in interface UsmAgent
SnmpUtilities.toBytes(String)
public void setSnmpEngineBoots(int boots)
public int getSnmpEngineBoots()
UsmAgent
getSnmpEngineBoots
in interface UsmAgent
public void setSnmpEngineTime(int time)
public int getSnmpEngineTime()
UsmAgent
getSnmpEngineTime
in interface UsmAgent
public void setSnmpContext(SnmpContextv3Basis c)
setSnmpContext
in interface UsmAgent
public void setUsmStatsUnknownEngineIDs(int usmStatsUnknownEngineIDs)
public long getUsmStatsUnknownEngineIDs()
UsmAgent
getUsmStatsUnknownEngineIDs
in interface UsmAgent
public void setUsmStatsNotInTimeWindows(int usmStatsNotInTimeWindows)
public long getUsmStatsNotInTimeWindows()
UsmAgent
getUsmStatsNotInTimeWindows
in interface UsmAgent