- java.lang.Object
-
- java.util.EventObject
-
- org.snmp4j.agent.ContextEvent
-
- All Implemented Interfaces:
Serializable
public class ContextEvent extends EventObject
TheContextEventobject describes an event that added or removed a context to/from a system.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTEXT_ADDEDstatic intCONTEXT_REMOVED-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ContextEvent(Object source, int type, org.snmp4j.smi.OctetString context)Creates a context event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.snmp4j.smi.OctetStringgetContext()Returns context name associated with this event object.intgetType()Returns the event type.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
CONTEXT_ADDED
public static final int CONTEXT_ADDED
- See Also:
- Constant Field Values
-
CONTEXT_REMOVED
public static final int CONTEXT_REMOVED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextEvent
public ContextEvent(Object source, int type, org.snmp4j.smi.OctetString context)
Creates a context event.- Parameters:
source- the source object that triggered the event.type- the event type, for exampleCONTEXT_ADDEDorCONTEXT_REMOVED.context- the name of the context on whose behalf this event has been created.
-
-