Class EventSinkModule
- java.lang.Object
-
- org.opennms.core.ipc.sink.xml.AbstractXmlSinkModule<Event,Log>
-
- org.opennms.features.events.sink.module.EventSinkModule
-
- All Implemented Interfaces:
SinkModule<Event,Log>
public class EventSinkModule extends AbstractXmlSinkModule<Event,Log>
- Author:
- Malatesh Sudarshan
-
-
Field Summary
Fields Modifier and Type Field Description static StringMODULE_ID-
Fields inherited from interface org.opennms.core.ipc.sink.api.SinkModule
HEARTBEAT_MODULE_ID
-
-
Constructor Summary
Constructors Constructor Description EventSinkModule(EventdConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AggregationPolicy<Event,Log,Log>getAggregationPolicy()Defines how messages should be combined, and when they should be "released".AsyncPolicygetAsyncPolicy()Defines how messages should be asynchronously dispatched.StringgetId()Globally unique identifier.intgetNumConsumerThreads()The number of threads used to consume from the broker.inthashCode()EventunmarshalSingleMessage(byte[] bytes)Modules with different aggregated message should override this method-
Methods inherited from class org.opennms.core.ipc.sink.xml.AbstractXmlSinkModule
marshal, marshalSingleMessage, unmarshal
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.core.ipc.sink.api.SinkModule
getRoutingKey
-
-
-
-
Field Detail
-
MODULE_ID
public static final String MODULE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EventSinkModule
public EventSinkModule(EventdConfig config)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:SinkModuleGlobally unique identifier. Used in the JMS queue name in the Camel implementation.
-
getNumConsumerThreads
public int getNumConsumerThreads()
Description copied from interface:SinkModuleThe number of threads used to consume from the broker.
-
getAggregationPolicy
public AggregationPolicy<Event,Log,Log> getAggregationPolicy()
Description copied from interface:SinkModuleDefines how messages should be combined, and when they should be "released". Modules that do not wish to use aggregation can returnnull.- Returns:
- the
AggregationPolicyused to combine messages, ornullif the messages should not be combined.
-
getAsyncPolicy
public AsyncPolicy getAsyncPolicy()
Description copied from interface:SinkModuleDefines how messages should be asynchronously dispatched.- Returns:
- the
AsyncPolicyused when asynchronously dispatching messages for this module.
-
unmarshalSingleMessage
public Event unmarshalSingleMessage(byte[] bytes)
Description copied from class:AbstractXmlSinkModuleModules with different aggregated message should override this method- Specified by:
unmarshalSingleMessagein interfaceSinkModule<Event,Log>- Overrides:
unmarshalSingleMessagein classAbstractXmlSinkModule<Event,Log>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractXmlSinkModule<Event,Log>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractXmlSinkModule<Event,Log>
-
-