public class SyslogSinkModule extends AbstractXmlSinkModule<SyslogConnection,SyslogMessageLogDTO>
| Modifier and Type | Field and Description |
|---|---|
static String |
MODULE_ID |
HEARTBEAT_MODULE_ID| Constructor and Description |
|---|
SyslogSinkModule(SyslogdConfig config,
DistPollerDao distPollerDao) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AggregationPolicy<SyslogConnection,SyslogMessageLogDTO,SyslogMessageLogDTO> |
getAggregationPolicy()
Defines how messages should be combined, and when they
should be "released".
|
AsyncPolicy |
getAsyncPolicy()
Defines how messages should be asynchronously dispatched.
|
String |
getId()
Globally unique identifier.
|
int |
getNumConsumerThreads()
The number of threads used to consume from the broker.
|
int |
hashCode() |
SyslogMessageLogDTO |
toMessageLog(SyslogConnection... connections)
Used for testing.
|
SyslogConnection |
unmarshalSingleMessage(byte[] bytes)
Modules with different aggregated message should override this method
|
marshal, marshalSingleMessage, unmarshalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetRoutingKeypublic static final String MODULE_ID
public SyslogSinkModule(SyslogdConfig config, DistPollerDao distPollerDao)
public String getId()
SinkModulepublic int getNumConsumerThreads()
SinkModulepublic AggregationPolicy<SyslogConnection,SyslogMessageLogDTO,SyslogMessageLogDTO> getAggregationPolicy()
SinkModulenull.AggregationPolicy used to combine messages, or null
if the messages should not be combined.public AsyncPolicy getAsyncPolicy()
SinkModuleAsyncPolicy used when asynchronously dispatching
messages for this module.public SyslogConnection unmarshalSingleMessage(byte[] bytes)
AbstractXmlSinkModuleunmarshalSingleMessage in interface SinkModule<SyslogConnection,SyslogMessageLogDTO>unmarshalSingleMessage in class AbstractXmlSinkModule<SyslogConnection,SyslogMessageLogDTO>public SyslogMessageLogDTO toMessageLog(SyslogConnection... connections)
public int hashCode()
hashCode in class AbstractXmlSinkModule<SyslogConnection,SyslogMessageLogDTO>public boolean equals(Object obj)
equals in class AbstractXmlSinkModule<SyslogConnection,SyslogMessageLogDTO>Copyright © 2022. All rights reserved.