public class EventCollector extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
EventCollector.RejectedExecutionHandlerImpl |
| Constructor and Description |
|---|
EventCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
getEventsPerMessageCall()
Returns the number of events sent by one service call.
|
List<org.talend.esb.sam.common.spi.EventFilter> |
getFilters()
Gets the filters.
|
List<org.talend.esb.sam.common.spi.EventHandler> |
getHandlers()
Gets the handlers.
|
void |
init()
Instantiates a new event collector.
|
void |
sendEventsFromQueue()
Method will be executed asynchronously.
|
void |
setBus(org.apache.cxf.Bus bus)
Sets the bus.
|
void |
setDefaultInterval(long defaultInterval)
Set default interval for sending events to monitoring service.
|
void |
setEventsPerMessageCall(int eventsPerMessageCall)
Set by Spring.
|
void |
setExecutorPoolSize(int executorPoolSize) |
void |
setExecutorQueueSize(int executorQueueSize) |
void |
setFilters(List<org.talend.esb.sam.common.spi.EventFilter> filters)
Sets the filters.
|
void |
setHandlers(List<org.talend.esb.sam.common.spi.EventHandler> handlers)
Sets the handlers.
|
void |
setMonitoringServiceClient(org.talend.esb.sam.common.service.MonitoringService monitoringServiceClient)
Spring sets the monitoring service client.
|
void |
setQueue(EventQueue queue)
Spring sets the queue.
|
void |
setSendLifecycleEvent(boolean sendLifecycleEvent)
Set if collect/send lifecycle events to sam-server.
|
void |
setSendToEventadmin(boolean sendToEventadmin)
Set if send SAM events to the EventAdmin (for Event Logging)
|
@PostConstruct public void init()
public int getEventsPerMessageCall()
public void setEventsPerMessageCall(int eventsPerMessageCall)
eventsPerMessageCall - the new events per message callpublic void setDefaultInterval(long defaultInterval)
defaultInterval - the new default intervalpublic void setSendLifecycleEvent(boolean sendLifecycleEvent)
sendLifecycleEvent - the new send lifecycle eventpublic void setSendToEventadmin(boolean sendToEventadmin)
sendToEventadmin - send SAM events to the EventAdminpublic void setQueue(EventQueue queue)
queue - the new queuepublic void setExecutorPoolSize(int executorPoolSize)
public void setExecutorQueueSize(int executorQueueSize)
public void setMonitoringServiceClient(org.talend.esb.sam.common.service.MonitoringService monitoringServiceClient)
monitoringServiceClient - the new monitoring service clientpublic void setBus(org.apache.cxf.Bus bus)
bus - the new buspublic List<org.talend.esb.sam.common.spi.EventFilter> getFilters()
public void setFilters(List<org.talend.esb.sam.common.spi.EventFilter> filters)
filters - the new filterspublic List<org.talend.esb.sam.common.spi.EventHandler> getHandlers()
public void setHandlers(List<org.talend.esb.sam.common.spi.EventHandler> handlers)
newHandlers - the new handlerspublic void sendEventsFromQueue()
@PreDestroy public void destroy()
Copyright © 2011–2021 Talend Inc.. All rights reserved.