java.lang.Object
java.util.EventObject
org.snmp4j.agent.ContextEvent
- All Implemented Interfaces:
Serializable
The
ContextEvent
object describes an event that added or removed
a context to/from a system.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionContextEvent
(Object source, int type, org.snmp4j.smi.OctetString context) Creates a context event. -
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.OctetString
Returns context name associated with this event object.int
getType()
Returns the event type.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
CONTEXT_ADDED
public static final int CONTEXT_ADDED- See Also:
-
CONTEXT_REMOVED
public static final int CONTEXT_REMOVED- See Also:
-
-
Constructor Details
-
ContextEvent
Creates a context event.- Parameters:
source
- the source object that triggered the event.type
- the event type, for exampleCONTEXT_ADDED
orCONTEXT_REMOVED
.context
- the name of the context on whose behalf this event has been created.
-
-
Method Details
-
getContext
public org.snmp4j.smi.OctetString getContext()Returns context name associated with this event object.- Returns:
- the context name.
-
getType
public int getType()Returns the event type.- Returns:
- one of the CONTEXT_* constant values defined by this event object.
-