public class EventdConfigManager extends Object implements EventdConfig
EventdConfigManager class.
| Modifier and Type | Field and Description |
|---|---|
protected EventdConfiguration |
m_config
The config class loaded from the config file
|
| Constructor and Description |
|---|
EventdConfigManager()
Constructor for EventdConfigManager.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchIntervalMs()
Messages are aggregated in batches before being dispatched.
|
int |
getBatchSize()
Messages are aggregated in batches before being dispatched.
|
String |
getGetNextEventID()
Deprecated.
This is only used when using
JdbcEventWriter
so when we remove the JDBC implementation, we can get rid of this
class. |
int |
getNumThreads()
Number of threads used for consuming/dispatching messages.
|
int |
getQueueLength()
Return the length of the incoming event queue.
|
int |
getQueueSize()
Maximum number of messages to keep in memory while waiting to be
dispatched.
|
Lock |
getReadLock() |
int |
getReceivers()
Return the number of event receivers to be started.
|
int |
getSocketSoTimeoutPeriod()
Return timeout to be set on the socket.
|
String |
getSocketSoTimeoutRequired()
Return string indicating if timeout is to be set on the socket.
|
String |
getTCPIpAddress()
Return the IP address on which eventd listens for TCP connections.
|
int |
getTCPPort()
Return the port on which eventd listens for TCP connections.
|
String |
getUDPIpAddress()
Return the IP address on which eventd listens for UDP packets.
|
int |
getUDPPort()
Return the port on which eventd listens for UDP data.
|
Lock |
getWriteLock() |
boolean |
hasSocketSoTimeoutPeriod()
Return flag indicating if timeout to be set on the socket is specified.
|
boolean |
shouldLogEventSummaries()
Whether or not Eventd should log event summaries.
|
protected EventdConfiguration m_config
public EventdConfigManager()
throws IOException
Constructor for EventdConfigManager.
stream - a InputStream object.IOException - if any.public Lock getReadLock()
public Lock getWriteLock()
public String getTCPIpAddress()
getTCPIpAddress in interface EventdConfigpublic int getTCPPort()
getTCPPort in interface EventdConfigpublic String getUDPIpAddress()
getUDPIpAddress in interface EventdConfigpublic int getUDPPort()
getUDPPort in interface EventdConfigpublic int getReceivers()
getReceivers in interface EventdConfigpublic int getQueueLength()
getQueueLength in interface EventdConfigpublic String getSocketSoTimeoutRequired()
getSocketSoTimeoutRequired in interface EventdConfigpublic int getSocketSoTimeoutPeriod()
getSocketSoTimeoutPeriod in interface EventdConfigpublic boolean hasSocketSoTimeoutPeriod()
hasSocketSoTimeoutPeriod in interface EventdConfigpublic boolean shouldLogEventSummaries()
public String getGetNextEventID()
JdbcEventWriter
so when we remove the JDBC implementation, we can get rid of this
class.getGetNextEventID in interface EventdConfigpublic int getNumThreads()
EventdConfiggetNumThreads in interface EventdConfigpublic int getQueueSize()
EventdConfiggetQueueSize in interface EventdConfigpublic int getBatchSize()
EventdConfiggetBatchSize in interface EventdConfigpublic int getBatchIntervalMs()
EventdConfiggetBatchIntervalMs in interface EventdConfigCopyright © 2022. All rights reserved.