public class EventCollector extends Object implements org.apache.cxf.buslifecycle.BusLifeCycleListener
| Constructor and Description |
|---|
EventCollector()
Instantiates a new event collector.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
initComplete() |
void |
postShutdown() |
void |
preShutdown() |
void |
sendEventsFromQueue()
Method will be executed asynchronously from spring.
|
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 |
setExecutor(org.springframework.core.task.TaskExecutor executor)
Spring sets the executor.
|
void |
setFilters(List<org.talend.esb.sam.common.spi.EventFilter> filters)
Sets the filters.
|
void |
setHandlers(List<org.talend.esb.sam.common.spi.EventHandler> newHandlers)
Sets the handlers.
|
void |
setMonitoringServiceClient(org.talend.esb.sam.common.service.MonitoringService monitoringServiceClient)
Spring sets the monitoring service client.
|
void |
setQueue(Queue<org.talend.esb.sam.common.event.Event> queue)
Spring sets the queue.
|
void |
setScheduler(org.springframework.scheduling.TaskScheduler scheduler)
Scheduler will be set and configured by Spring.
|
void |
setSendLifecycleEvent(boolean sendLifecycleEvent)
Set if collect/send lifecycle events to sam-server.
|
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 setScheduler(org.springframework.scheduling.TaskScheduler scheduler)
scheduler - the new schedulerpublic void setExecutor(org.springframework.core.task.TaskExecutor executor)
executor - the new executorpublic void setQueue(Queue<org.talend.esb.sam.common.event.Event> queue)
queue - the new queuepublic 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()
@Autowired(required=false) public void setHandlers(List<org.talend.esb.sam.common.spi.EventHandler> newHandlers)
newHandlers - the new handlerspublic void sendEventsFromQueue()
public void initComplete()
initComplete in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void preShutdown()
preShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerpublic void postShutdown()
postShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListenerCopyright © 2011–2015 Talend Inc.. All rights reserved.