|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.SnmpEngine
This class represents SNMP Engine concept as defined in SNMPv3.
Constructor Summary | |
SnmpEngine(byte[] engineID)
Creates an SnmpEngine instance with the passed engineID, host and port number. |
|
SnmpEngine(byte[] engineID,
int boots,
int time,
String host,
int port)
Constructs a new SnmpEngine object |
|
SnmpEngine(String host,
int port)
Creates an SnmpEngine with empty engine ID, and passed host and port number |
|
SnmpEngine(String host,
int port,
byte[] engineID)
Creates an SnmpEngine instance with the passed engineID |
Method Summary | |
int |
getEngineBoots()
Returns the engine boots value |
byte[] |
getEngineID()
Returns the engine id value |
int |
getEngineTime()
Returns the engine time value |
String |
getHost()
Returns the host name of snmp agent |
int |
getPort()
Returns the port number of snmp agent |
void |
setEngineBoots(int i)
Sets engine boots |
void |
setEngineID(byte[] engineID)
Sets engine id value |
void |
setEngineTime(int time)
Sets engine time |
void |
setHost(String host)
Set a new host name of snmp agent |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpEngine(String host, int port)
host
- engine's host name or ip addressport
- engine's port numberpublic SnmpEngine(byte[] engineID)
engineID
- the engineID of this objectpublic SnmpEngine(String host, int port, byte[] engineID)
host
- engine's host name or ip addressport
- engine's port numberengineID
- the engineID of this objectpublic SnmpEngine(byte[] engineID, int boots, int time, String host, int port)
engineID
- engine IDboots
- snmpEngineBoots, number of times an SnmpEngine has either been started or
re-initialized since snmpEngineID was last configured.host
- the host name or ip address of snmp agenttime
- snmpEngineTime, number of seconds since the value of snmpEngineBoots last
changed.port
- the port number of snmp agentMethod Detail |
public String getHost()
public void setHost(String host)
host
- new host name or ip addresspublic int getEngineBoots()
public byte[] getEngineID()
public void setEngineID(byte[] engineID)
public int getEngineTime()
public int getPort()
public void setEngineBoots(int i)
public void setEngineTime(int time)
public String toString()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |