|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.databridge.agent.endpoint.DataEndpoint
public abstract class DataEndpoint
Abstract class for DataEndpoint, and this is a main class that needs to be implemented for supporting different transports to DataPublisher. This abstraction provides the additional functionality to handle failover, asynchronous connection to the endpoint, etc.
| Nested Class Summary | |
|---|---|
static class |
DataEndpoint.State
|
| Constructor Summary | |
|---|---|
DataEndpoint()
|
|
| Method Summary | |
|---|---|
abstract String |
getClientPoolFactoryClass()
Get the class name of implementation for org.wso2.carbon.databridge.agent.client.AbstractClientPoolFactory class. |
protected DataEndpointConfiguration |
getDataEndpointConfiguration()
|
abstract String |
getSecureClientPoolFactoryClass()
Get the class name of implementation for org.wso2.carbon.databridge.agent.client.AbstractSecureClientPoolFactory class. |
DataEndpoint.State |
getState()
|
void |
initialize(DataEndpointConfiguration dataEndpointConfiguration)
|
protected abstract String |
login(Object client,
String userName,
String password)
Login to the endpoint and return the sessionId. |
protected abstract void |
logout(Object client,
String sessionId)
Logout from the endpoint. |
protected abstract void |
send(Object client,
List<org.wso2.carbon.databridge.commons.Event> events)
Send the list of events to the actual endpoint. |
void |
shutdown()
Graceful shutdown until publish all the events given to the endpoint. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataEndpoint()
| Method Detail |
|---|
public void initialize(DataEndpointConfiguration dataEndpointConfiguration)
throws DataEndpointException,
DataEndpointAuthenticationException,
org.wso2.carbon.databridge.commons.exception.TransportException
DataEndpointException
DataEndpointAuthenticationException
org.wso2.carbon.databridge.commons.exception.TransportException
protected abstract String login(Object client,
String userName,
String password)
throws DataEndpointAuthenticationException
client - The client which can be used to connect to the endpoint.userName - The username which is used to login,password - The password which is required for the login operation.
DataEndpointAuthenticationException
protected abstract void logout(Object client,
String sessionId)
throws DataEndpointAuthenticationException
client - The client that is used to logout operation.sessionId - The current session Id.
DataEndpointAuthenticationExceptionpublic DataEndpoint.State getState()
protected abstract void send(Object client,
List<org.wso2.carbon.databridge.commons.Event> events)
throws DataEndpointException,
org.wso2.carbon.databridge.commons.exception.SessionTimeoutException,
org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeException
client - The client that can be used to send the events.events - List of events that needs to be sent.
DataEndpointException
org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeExceptionprotected DataEndpointConfiguration getDataEndpointConfiguration()
public String toString()
toString in class Objectpublic void shutdown()
public abstract String getClientPoolFactoryClass()
public abstract String getSecureClientPoolFactoryClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||