|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.esb.sam.agent.collector.EventCollector
public class EventCollector
EventCollector reads the events from Queue. After processing with filter/handler, the events will be sent to SAM Server periodically.
| Constructor Summary | |
|---|---|
EventCollector()
Instantiates a new event collector. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventCollector()
| Method Detail |
|---|
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.BusLifeCycleListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||