Interface EventWriter

  • All Superinterfaces:
    EventProcessor
    All Known Implementing Classes:
    HibernateEventWriter

    public interface EventWriter
    extends EventProcessor
    EventWriter stores the information for each 'Event' into the database. While loading multiple values of the same element into a single DB column, the multiple values are delimited by MULTIPLE_VAL_DELIM. When an element and its attribute are loaded into a single DB column, the value and the attribute are separated by a DB_ATTRIB_DELIM. When using delimiters to append values, if the values already have the delimiter, the delimiter in the value is escaped as in URLs. Values for the ' ' block are loaded with each parm name and parm value delimited with the NAME_VAL_DELIM.
    Author:
    Sowmya Nataraj , David Hustace , OpenNMS.org
    See Also:
    org.opennms.netmgt.model.events.Constants#MULTIPLE_VAL_DELIM, org.opennms.netmgt.model.events.Constants#DB_ATTRIB_DELIM, org.opennms.netmgt.model.events.Constants#NAME_VAL_DELIM, org.opennms.netmgt.model.events.Constants#MULTIPLE_VAL_DELIM, org.opennms.netmgt.model.events.Constants#DB_ATTRIB_DELIM, org.opennms.netmgt.model.events.Constants#NAME_VAL_DELIM, org.opennms.netmgt.model.events.Constants#MULTIPLE_VAL_DELIM, org.opennms.netmgt.model.events.Constants#DB_ATTRIB_DELIM, Changes: - Alarm persisting added (many moons ago) - Alarm persisting now removes oldest events by default. Use "auto-clean" attribute in eventconf files.
    • Field Detail

      • EVENT_UEI_FIELD_SIZE

        static final int EVENT_UEI_FIELD_SIZE
        Constant EVENT_UEI_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_HOST_FIELD_SIZE

        static final int EVENT_HOST_FIELD_SIZE
        Constant EVENT_HOST_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_INTERFACE_FIELD_SIZE

        static final int EVENT_INTERFACE_FIELD_SIZE
        Constant EVENT_INTERFACE_FIELD_SIZE=50. This value must be long enough to accommodate an IPv6 address with scope identifier suffix (if present). Basic IPv6 addresses are 39 characters so this will accommodate a 10-digit scope identifier (any 32-bit decimal value).
        See Also:
        Constant Field Values
      • EVENT_SNMPHOST_FIELD_SIZE

        static final int EVENT_SNMPHOST_FIELD_SIZE
        Constant EVENT_SNMPHOST_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_SNMP_FIELD_SIZE

        static final int EVENT_SNMP_FIELD_SIZE
        Constant EVENT_SNMP_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_LOGGRP_FIELD_SIZE

        static final int EVENT_LOGGRP_FIELD_SIZE
        Constant EVENT_LOGGRP_FIELD_SIZE=32
        See Also:
        Constant Field Values
      • EVENT_PATHOUTAGE_FIELD_SIZE

        static final int EVENT_PATHOUTAGE_FIELD_SIZE
        Constant EVENT_PATHOUTAGE_FIELD_SIZE=1024
        See Also:
        Constant Field Values
      • EVENT_CORRELATION_FIELD_SIZE

        static final int EVENT_CORRELATION_FIELD_SIZE
        Constant EVENT_CORRELATION_FIELD_SIZE=1024
        See Also:
        Constant Field Values
      • EVENT_AUTOACTION_FIELD_SIZE

        static final int EVENT_AUTOACTION_FIELD_SIZE
        Constant EVENT_AUTOACTION_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_OPERACTION_FIELD_SIZE

        static final int EVENT_OPERACTION_FIELD_SIZE
        Constant EVENT_OPERACTION_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_OPERACTION_MENU_FIELD_SIZE

        static final int EVENT_OPERACTION_MENU_FIELD_SIZE
        Constant EVENT_OPERACTION_MENU_FIELD_SIZE=64
        See Also:
        Constant Field Values
      • EVENT_TTICKET_FIELD_SIZE

        static final int EVENT_TTICKET_FIELD_SIZE
        Constant EVENT_TTICKET_FIELD_SIZE=128
        See Also:
        Constant Field Values
      • EVENT_FORWARD_FIELD_SIZE

        static final int EVENT_FORWARD_FIELD_SIZE
        Constant EVENT_FORWARD_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_MOUSEOVERTEXT_FIELD_SIZE

        static final int EVENT_MOUSEOVERTEXT_FIELD_SIZE
        Constant EVENT_MOUSEOVERTEXT_FIELD_SIZE=64
        See Also:
        Constant Field Values
      • EVENT_ACKUSER_FIELD_SIZE

        static final int EVENT_ACKUSER_FIELD_SIZE
        Constant EVENT_ACKUSER_FIELD_SIZE=256
        See Also:
        Constant Field Values
      • EVENT_SOURCE_FIELD_SIZE

        static final int EVENT_SOURCE_FIELD_SIZE
        Constant EVENT_SOURCE_FIELD_SIZE=128
        See Also:
        Constant Field Values
      • EVENT_X733_ALARMTYPE_SIZE

        static final int EVENT_X733_ALARMTYPE_SIZE
        Constant EVENT_X733_ALARMTYPE_SIZE=31
        See Also:
        Constant Field Values
      • MSG_YES

        static final char MSG_YES
        The character to put in if the log or display is to be set to yes
        See Also:
        Constant Field Values
      • MSG_NO

        static final char MSG_NO
        The character to put in if the log or display is to be set to no
        See Also:
        Constant Field Values