org.talend.esb.sam.agent.serviceclient
Class MonitoringServiceWrapper

java.lang.Object
  extended by org.talend.esb.sam.agent.serviceclient.MonitoringServiceWrapper
All Implemented Interfaces:
org.talend.esb.sam.common.service.MonitoringService

public class MonitoringServiceWrapper
extends Object
implements org.talend.esb.sam.common.service.MonitoringService

Wraps business logic to web service logic. So web service should be changeable.


Constructor Summary
MonitoringServiceWrapper()
           
 
Method Summary
 void putEvents(List<org.talend.esb.sam.common.event.Event> events)
          Sends all events to the web service.
 void setDelayBetweenRetry(long delayBetweenRetry)
          Sets the delay between retry.
 void setMonitoringService(org.talend.esb.sam.monitoringservice.v1.MonitoringService monitoringService)
          Set by Spring.
 void setNumberOfRetries(int numberOfRetries)
          Sets the number of retries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringServiceWrapper

public MonitoringServiceWrapper()
Method Detail

setNumberOfRetries

public void setNumberOfRetries(int numberOfRetries)
Sets the number of retries.

Parameters:
numberOfRetries - the new number of retries

setDelayBetweenRetry

public void setDelayBetweenRetry(long delayBetweenRetry)
Sets the delay between retry.

Parameters:
delayBetweenRetry - the new delay between retry

setMonitoringService

public void setMonitoringService(org.talend.esb.sam.monitoringservice.v1.MonitoringService monitoringService)
Set by Spring. Sets the web service implementation.

Parameters:
monitoringService - the new monitoring service

putEvents

public void putEvents(List<org.talend.esb.sam.common.event.Event> events)
Sends all events to the web service. Events will be transformed with mapper before sending.

Specified by:
putEvents in interface org.talend.esb.sam.common.service.MonitoringService
Parameters:
events - the events


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.