Class ContextEvent

  • All Implemented Interfaces:
    Serializable

    public class ContextEvent
    extends 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
    • 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 example CONTEXT_ADDED or CONTEXT_REMOVED.
        context - the name of the context on whose behalf this event has been created.
    • Method Detail

      • 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.