org.wso2.carbon.databridge.agent.endpoint
Class DataEndpointGroup

java.lang.Object
  extended by org.wso2.carbon.databridge.agent.endpoint.DataEndpointGroup
All Implemented Interfaces:
DataEndpointFailureCallback

public class DataEndpointGroup
extends Object
implements DataEndpointFailureCallback

This class holds the endpoints associated within a group. Also it has a queue to hold the list of events that needs to be processed by the endpoints with provided the load balancing, or failover configuration.


Nested Class Summary
static class DataEndpointGroup.HAType
           
 
Constructor Summary
DataEndpointGroup(DataEndpointGroup.HAType haType, DataEndpointAgent agent)
           
 
Method Summary
 void addDataEndpoint(DataEndpoint dataEndpoint)
           
 void publish(org.wso2.carbon.databridge.commons.Event event)
           
 void shutdown()
           
 String toString()
           
 void tryPublish(org.wso2.carbon.databridge.commons.Event event)
           
 void tryPublish(org.wso2.carbon.databridge.commons.Event event, long timeoutMS)
           
 void tryResendEvents(List<org.wso2.carbon.databridge.commons.Event> events)
          Notifies the The failed events, and should try to send the events again successfully.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataEndpointGroup

public DataEndpointGroup(DataEndpointGroup.HAType haType,
                         DataEndpointAgent agent)
Method Detail

addDataEndpoint

public void addDataEndpoint(DataEndpoint dataEndpoint)

tryPublish

public void tryPublish(org.wso2.carbon.databridge.commons.Event event)
                throws EventQueueFullException
Throws:
EventQueueFullException

tryPublish

public void tryPublish(org.wso2.carbon.databridge.commons.Event event,
                       long timeoutMS)
                throws EventQueueFullException
Throws:
EventQueueFullException

publish

public void publish(org.wso2.carbon.databridge.commons.Event event)

tryResendEvents

public void tryResendEvents(List<org.wso2.carbon.databridge.commons.Event> events)
Description copied from interface: DataEndpointFailureCallback
Notifies the The failed events, and should try to send the events again successfully. In case if this couldn't send the events, then the unsuccessful events list needs to be returned back.

Specified by:
tryResendEvents in interface DataEndpointFailureCallback
Parameters:
events - List failed events

toString

public String toString()
Overrides:
toString in class Object

shutdown

public void shutdown()


Copyright © 2015 WSO2. All rights reserved.