Class EventKey

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<EventKey>, Map<String,​Object>

    public class EventKey
    extends LinkedHashMap<String,​Object>
    implements Serializable, Comparable<EventKey>
     The key for an event - it extends the LinkedHashMap and basically is a
      map of name/value pairs of the 'maskelements' block in the event.
      While the names are maskelement names,
      - if the event is a 'org.opennms.netmgt.xml.eventconf.Event',
        the maskvalue list is taken as the value
      - if the event is an 'org.opennms.netmgt.xml.event.Event',
        the value in the event for the mask element is used as the value.
    
      This hashtable is pretty much constant once constructed - so the hashcode
      is evaluated once at construction and reused(if new values are added or
      values changed, hashcode is re-evaluated)
     
    Author:
    Sowmya Nataraj , OpenNMS.org
    See Also:
    Serialized Form