public class ContextEvent extends EventObject
ContextEvent
object describes an event that added or removed
a context to/from a system.Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_ADDED |
static int |
CONTEXT_REMOVED |
source
Constructor and Description |
---|
ContextEvent(Object source,
int type,
org.snmp4j.smi.OctetString context)
Creates a context event.
|
Modifier and Type | Method and Description |
---|---|
org.snmp4j.smi.OctetString |
getContext()
Returns context name associated with this event object.
|
int |
getType()
Returns the event type.
|
getSource, toString
public static final int CONTEXT_ADDED
public static final int CONTEXT_REMOVED
public ContextEvent(Object source, int type, org.snmp4j.smi.OctetString context)
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.Copyright © 2017 SNMP4J.org. All rights reserved.