- java.lang.Object
-
- java.util.EventObject
-
- org.snmp4j.event.SnmpEngineEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class SnmpEngineEvent extends java.util.EventObjectTheSnmpEngineEventdescribes events generated on behalf of the engine ID cache of the SNMPv3 message processing model (MPv3).- Since:
- 1.6
- Version:
- 1.6
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intADDED_ENGINE_IDprivate AddressengineAddressprivate OctetStringengineIDstatic intIGNORED_ENGINE_IDstatic intREMOVED_ENGINE_IDprivate static longserialVersionUIDprivate inttype
-
Constructor Summary
Constructors Constructor Description SnmpEngineEvent(MPv3 source, int type, OctetString engineID, Address engineAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressgetEngineAddress()Returns the transport address of the engine.OctetStringgetEngineID()Returns the engine ID associated with this event.intgetType()Returns the type of the engine event.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ADDED_ENGINE_ID
public static final int ADDED_ENGINE_ID
- See Also:
- Constant Field Values
-
REMOVED_ENGINE_ID
public static final int REMOVED_ENGINE_ID
- See Also:
- Constant Field Values
-
IGNORED_ENGINE_ID
public static final int IGNORED_ENGINE_ID
- See Also:
- Constant Field Values
-
engineID
private OctetString engineID
-
engineAddress
private Address engineAddress
-
type
private int type
-
-
Constructor Detail
-
SnmpEngineEvent
public SnmpEngineEvent(MPv3 source, int type, OctetString engineID, Address engineAddress)
-
-
Method Detail
-
getType
public int getType()
Returns the type of the engine event.- Returns:
- one of the integer constants defined by this class.
-
getEngineID
public OctetString getEngineID()
Returns the engine ID associated with this event.- Returns:
- the engine ID.
-
getEngineAddress
public Address getEngineAddress()
Returns the transport address of the engine.- Returns:
- the transport address.
-
-