Class EventdConfigBean
- java.lang.Object
-
- org.opennms.features.events.sink.dispatcher.EventdConfigBean
-
- All Implemented Interfaces:
EventdConfig
public class EventdConfigBean extends Object implements EventdConfig
This is used to initialize sink module on Minion. Doesn't support listening events on TCP/UDP.
-
-
Constructor Summary
Constructors Constructor Description EventdConfigBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchIntervalMs()Messages are aggregated in batches before being dispatched.intgetBatchSize()Messages are aggregated in batches before being dispatched.StringgetGetNextEventID()getGetNextEventIDintgetNumThreads()Number of threads used for consuming/dispatching messages.intgetQueueLength()getQueueLengthintgetQueueSize()Maximum number of messages to keep in memory while waiting to be dispatched.intgetReceivers()getReceiversintgetSocketSoTimeoutPeriod()getSocketSoTimeoutPeriodStringgetSocketSoTimeoutRequired()getSocketsSoTimeoutRequiredStringgetTCPIpAddress()getTCPIpAddressintgetTCPPort()getTCPPortStringgetUDPIpAddress()getUDPIpAddressintgetUDPPort()getUDPPortbooleanhasSocketSoTimeoutPeriod()hasSocketSoTimeoutPeriodvoidsetBatchIntervalMs(int batchIntervalMs)voidsetBatchSize(int batchSize)voidsetNumThreads(int numThreads)voidsetQueueSize(int queueSize)
-
-
-
Method Detail
-
getTCPIpAddress
public String getTCPIpAddress()
Description copied from interface:EventdConfiggetTCPIpAddress
- Specified by:
getTCPIpAddressin interfaceEventdConfig- Returns:
- a String
-
getTCPPort
public int getTCPPort()
Description copied from interface:EventdConfiggetTCPPort
- Specified by:
getTCPPortin interfaceEventdConfig- Returns:
- an int
-
getUDPIpAddress
public String getUDPIpAddress()
Description copied from interface:EventdConfiggetUDPIpAddress
- Specified by:
getUDPIpAddressin interfaceEventdConfig- Returns:
- a String
-
getUDPPort
public int getUDPPort()
Description copied from interface:EventdConfiggetUDPPort
- Specified by:
getUDPPortin interfaceEventdConfig- Returns:
- an int
-
getReceivers
public int getReceivers()
Description copied from interface:EventdConfiggetReceivers
- Specified by:
getReceiversin interfaceEventdConfig- Returns:
- an int
-
getQueueLength
public int getQueueLength()
Description copied from interface:EventdConfiggetQueueLength
- Specified by:
getQueueLengthin interfaceEventdConfig- Returns:
- an int
-
getSocketSoTimeoutRequired
public String getSocketSoTimeoutRequired()
Description copied from interface:EventdConfiggetSocketsSoTimeoutRequired
- Specified by:
getSocketSoTimeoutRequiredin interfaceEventdConfig- Returns:
- a String
-
getSocketSoTimeoutPeriod
public int getSocketSoTimeoutPeriod()
Description copied from interface:EventdConfiggetSocketSoTimeoutPeriod
- Specified by:
getSocketSoTimeoutPeriodin interfaceEventdConfig- Returns:
- an int
-
hasSocketSoTimeoutPeriod
public boolean hasSocketSoTimeoutPeriod()
Description copied from interface:EventdConfighasSocketSoTimeoutPeriod
- Specified by:
hasSocketSoTimeoutPeriodin interfaceEventdConfig- Returns:
- a boolean
-
getGetNextEventID
public String getGetNextEventID()
Description copied from interface:EventdConfiggetGetNextEventID
- Specified by:
getGetNextEventIDin interfaceEventdConfig- Returns:
- a String
-
getNumThreads
public int getNumThreads()
Description copied from interface:EventdConfigNumber of threads used for consuming/dispatching messages.- Specified by:
getNumThreadsin interfaceEventdConfig- Returns:
- number of threads
-
setNumThreads
public void setNumThreads(int numThreads)
-
getQueueSize
public int getQueueSize()
Description copied from interface:EventdConfigMaximum number of messages to keep in memory while waiting to be dispatched.- Specified by:
getQueueSizein interfaceEventdConfig- Returns:
- queue size
-
setQueueSize
public void setQueueSize(int queueSize)
-
getBatchSize
public int getBatchSize()
Description copied from interface:EventdConfigMessages are aggregated in batches before being dispatched. When the batch reaches this size, it will be dispatched.- Specified by:
getBatchSizein interfaceEventdConfig- Returns:
- batch size
-
setBatchSize
public void setBatchSize(int batchSize)
-
getBatchIntervalMs
public int getBatchIntervalMs()
Description copied from interface:EventdConfigMessages are aggregated in batches before being dispatched. When the batch has been created for longer than this interval it will be dispatched, regardless of the size.- Specified by:
getBatchIntervalMsin interfaceEventdConfig- Returns:
- interval in ms
-
setBatchIntervalMs
public void setBatchIntervalMs(int batchIntervalMs)
-
-