Class HibernateEventWriter
- java.lang.Object
-
- org.opennms.netmgt.eventd.processor.HibernateEventWriter
-
- All Implemented Interfaces:
EventWriter
,EventProcessor
public class HibernateEventWriter extends Object implements EventWriter
EventWriter loads the information in 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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_MSG_DEST_DISPLAY_ONLY
static String
LOG_MSG_DEST_DO_NOT_PERSIST
static String
LOG_MSG_DEST_LOG_AND_DISPLAY
static String
LOG_MSG_DEST_LOG_ONLY
static String
LOG_MSG_DEST_SUPRRESS
-
Fields inherited from interface org.opennms.netmgt.eventd.processor.EventWriter
EVENT_ACKUSER_FIELD_SIZE, EVENT_AUTOACTION_FIELD_SIZE, EVENT_CORRELATION_FIELD_SIZE, EVENT_FORWARD_FIELD_SIZE, EVENT_HOST_FIELD_SIZE, EVENT_INTERFACE_FIELD_SIZE, EVENT_LOGGRP_FIELD_SIZE, EVENT_MOUSEOVERTEXT_FIELD_SIZE, EVENT_OPERACTION_FIELD_SIZE, EVENT_OPERACTION_MENU_FIELD_SIZE, EVENT_PATHOUTAGE_FIELD_SIZE, EVENT_SNMP_FIELD_SIZE, EVENT_SNMPHOST_FIELD_SIZE, EVENT_SOURCE_FIELD_SIZE, EVENT_TTICKET_FIELD_SIZE, EVENT_UEI_FIELD_SIZE, EVENT_X733_ALARMTYPE_SIZE, MSG_NO, MSG_YES
-
-
Constructor Summary
Constructors Constructor Description HibernateEventWriter(com.codahale.metrics.MetricRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Log eventLog)
void
process(Log eventLog, boolean synchronous)
Event writing is always synchronous so this method just delegates toprocess(Log)
.void
setTransactionManager(org.springframework.transaction.support.TransactionOperations transactionManager)
-
-
-
Field Detail
-
LOG_MSG_DEST_DO_NOT_PERSIST
public static final String LOG_MSG_DEST_DO_NOT_PERSIST
- See Also:
- Constant Field Values
-
LOG_MSG_DEST_SUPRRESS
public static final String LOG_MSG_DEST_SUPRRESS
- See Also:
- Constant Field Values
-
LOG_MSG_DEST_LOG_AND_DISPLAY
public static final String LOG_MSG_DEST_LOG_AND_DISPLAY
- See Also:
- Constant Field Values
-
LOG_MSG_DEST_LOG_ONLY
public static final String LOG_MSG_DEST_LOG_ONLY
- See Also:
- Constant Field Values
-
LOG_MSG_DEST_DISPLAY_ONLY
public static final String LOG_MSG_DEST_DISPLAY_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(Log eventLog, boolean synchronous) throws EventProcessorException
Event writing is always synchronous so this method just delegates toprocess(Log)
.- Specified by:
process
in interfaceEventProcessor
- Throws:
EventProcessorException
-
process
public void process(Log eventLog) throws EventProcessorException
- Specified by:
process
in interfaceEventProcessor
- Throws:
EventProcessorException
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.support.TransactionOperations transactionManager)
-
-