org.wso2.carbon.databridge.agent.internal.endpoint
Class DataEndpoint

java.lang.Object
  extended by org.wso2.carbon.databridge.agent.internal.endpoint.DataEndpoint
Direct Known Subclasses:
BinaryDataEndpoint, ThriftDataEndpoint

public abstract class DataEndpoint
extends Object


Constructor Summary
DataEndpoint()
           
 
Method Summary
protected abstract  String connect(Object client, String userName, String password)
           
protected abstract  void disconnect(Object client, String sessionId)
           
protected  DataEndpointConfiguration getDataEndpointConfiguration()
           
protected abstract  void initialize()
           
 void initialize(DataEndpointConfiguration dataEndpointConfiguration)
           
 boolean isActive()
           
protected abstract  void send(Object client, ArrayList<org.wso2.carbon.databridge.commons.Event> events)
           
 void shutdown()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataEndpoint

public DataEndpoint()
Method Detail

initialize

public void initialize(DataEndpointConfiguration dataEndpointConfiguration)
                throws DataEndpointException,
                       DataEndpointAuthenticationException,
                       org.wso2.carbon.databridge.commons.exception.TransportException
Throws:
DataEndpointException
DataEndpointAuthenticationException
org.wso2.carbon.databridge.commons.exception.TransportException

connect

protected abstract String connect(Object client,
                                  String userName,
                                  String password)
                           throws DataEndpointAuthenticationException
Throws:
DataEndpointAuthenticationException

disconnect

protected abstract void disconnect(Object client,
                                   String sessionId)
                            throws DataEndpointAuthenticationException
Throws:
DataEndpointAuthenticationException

initialize

protected abstract void initialize()
                            throws DataEndpointException
Throws:
DataEndpointException

isActive

public boolean isActive()

send

protected abstract void send(Object client,
                             ArrayList<org.wso2.carbon.databridge.commons.Event> events)
                      throws DataEndpointException,
                             org.wso2.carbon.databridge.commons.exception.SessionTimeoutException,
                             org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeException
Throws:
DataEndpointException
org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeException

getDataEndpointConfiguration

protected DataEndpointConfiguration getDataEndpointConfiguration()

toString

public String toString()
Overrides:
toString in class Object

shutdown

public void shutdown()


Copyright © 2015 WSO2. All rights reserved.