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, unmarshal
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getRoutingKey
public static final String MODULE_ID
public SyslogSinkModule(SyslogdConfig config, DistPollerDao distPollerDao)
public String getId()
SinkModule
public int getNumConsumerThreads()
SinkModule
public AggregationPolicy<SyslogConnection,SyslogMessageLogDTO,SyslogMessageLogDTO> getAggregationPolicy()
SinkModule
null
.AggregationPolicy
used to combine messages, or null
if the messages should not be combined.public AsyncPolicy getAsyncPolicy()
SinkModule
AsyncPolicy
used when asynchronously dispatching
messages for this module.public SyslogConnection unmarshalSingleMessage(byte[] bytes)
AbstractXmlSinkModule
unmarshalSingleMessage
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 © 2021. All rights reserved.