org.snmp4j.agent
Class ContextEvent
java.lang.Object
java.util.EventObject
org.snmp4j.agent.ContextEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ContextEvent
- extends java.util.EventObject
The ContextEvent object describes an event that added or removed
a context to/from a system.
- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ContextEvent(java.lang.Object source,
int type,
org.snmp4j.smi.OctetString context)
Creates a context event. |
|
Method Summary |
org.snmp4j.smi.OctetString |
getContext()
Returns context name associated with this event object. |
int |
getType()
Returns the event type. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ContextEvent
public ContextEvent(java.lang.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 example CONTEXT_ADDED or
CONTEXT_REMOVED.context - the name of the context on whose behalf this event has been created.
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.
Copyright © 2011 SNMP4J.org. All Rights Reserved.