|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.ListenerManager com.ireasoning.protocol.Session com.ireasoning.protocol.snmp.SnmpBaseSession
This class provides basic methods of SNMP session implementation.
Field Summary |
Fields inherited from class com.ireasoning.protocol.Session |
_localAddr, _localPort, _state, _target, _thread, _timeout, _transportLayer, _tries, DEFAULT_TIME_OUT, TCP, UDP |
Fields inherited from class com.ireasoning.protocol.ListenerManager |
_listeners |
Fields inherited from interface com.ireasoning.core.jmx.State |
STARTED, STARTING, STATES, STOPPED, STOPPING, UNINITIALIZED |
Method Summary | |
void |
addEngine(byte[] engineID)
Adds a new SnmpEngine |
void |
addEngine(SnmpEngine engine)
Adds a new SnmpEngine |
SnmpEngine |
lookupEngine(byte[] engineID)
Looks up SnmpEngine instance based on engineID |
SnmpEngine |
lookupEngine(String host,
int port)
Looks up SnmpEngine instance based on host name and port |
SnmpEngine |
lookupEngine(Target target)
Looks up SnmpEngine instance based on host name and port |
protected UsmUser |
lookupUsmUser(String userName,
byte[] engineID)
Looks up USM user based on passed user name and engineID. |
protected Object |
receiveObject()
Not applicable for this class |
SnmpEngine |
removeEngine(byte[] engineID)
Removes SnmpEngine from engine table |
SnmpEngine |
removeEngine(SnmpEngine engine)
Removes SnmpEngine from engine table |
SnmpEngine |
removeEngine(String host,
int port)
Removes SnmpEngine from engine table |
SnmpEngine |
removeEngine(Target target)
Removes SnmpEngine from engine table |
void |
removeUsmUser(String userName,
byte[] engineID)
Removes a UserUser instance from internal map. |
Methods inherited from class com.ireasoning.protocol.Session |
close, finalize, getRetries, getState, getStateString, getTarget, getTimeout, getTransportLayer, getTransportLayer, open, open, open, reopen, setRetries, setTarget, setTimeout, setTransportLayer, setTransportLayer, startThread |
Methods inherited from class com.ireasoning.protocol.ListenerManager |
addListener, listenerExists, notifyListeners, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public SnmpEngine lookupEngine(String host, int port)
public SnmpEngine lookupEngine(Target target)
public SnmpEngine lookupEngine(byte[] engineID)
public void addEngine(SnmpEngine engine)
engine
- a instance of SnmpEngine to be addedpublic void addEngine(byte[] engineID)
engineID
- engine ID of the SnmpEngine to be addedpublic SnmpEngine removeEngine(byte[] engineID)
engineID
- the engine ID of the engine to be removed
public SnmpEngine removeEngine(Target target)
target
- the target object of the engine to be removed
public SnmpEngine removeEngine(String host, int port)
host
- the host name of the engine to be removedport
- the port number of the engine to be removed
public SnmpEngine removeEngine(SnmpEngine engine)
engine
- the engine to be removed
public void removeUsmUser(String userName, byte[] engineID)
protected UsmUser lookupUsmUser(String userName, byte[] engineID)
userName
- USM user name contained in the PDUengineID
- SNMPv3 engine IDprotected Object receiveObject() throws IOException
receiveObject
in class Session
IOException
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |