|
||||||||||
| 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
org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint
public class ThriftDataEndpoint
This is the DataEndpoint Implementation for thrift transport.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.wso2.carbon.databridge.agent.endpoint.DataEndpoint |
|---|
DataEndpoint.State |
| Constructor Summary | |
|---|---|
ThriftDataEndpoint()
|
|
| Method Summary | |
|---|---|
String |
getClientPoolFactoryClass()
Get the class name of implementation for org.wso2.carbon.databridge.agent.client.AbstractClientPoolFactory class. |
String |
getSecureClientPoolFactoryClass()
Get the class name of implementation for org.wso2.carbon.databridge.agent.client.AbstractSecureClientPoolFactory class. |
protected String |
login(Object client,
String userName,
String password)
Login to the endpoint and return the sessionId. |
protected void |
logout(Object client,
String sessionId)
Logout from the endpoint. |
protected void |
send(Object client,
List<org.wso2.carbon.databridge.commons.Event> events)
Send the list of events to the actual endpoint. |
| Methods inherited from class org.wso2.carbon.databridge.agent.endpoint.DataEndpoint |
|---|
getDataEndpointConfiguration, getState, initialize, shutdown, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThriftDataEndpoint()
| Method Detail |
|---|
protected String login(Object client,
String userName,
String password)
throws DataEndpointAuthenticationException
DataEndpoint
login in class DataEndpointclient - 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 void logout(Object client,
String sessionId)
throws DataEndpointAuthenticationException
DataEndpoint
logout in class DataEndpointclient - The client that is used to logout operation.sessionId - The current session Id.
DataEndpointAuthenticationException
protected 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
DataEndpoint
send in class DataEndpointclient - 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.UndefinedEventTypeExceptionpublic String getClientPoolFactoryClass()
DataEndpoint
getClientPoolFactoryClass in class DataEndpointpublic String getSecureClientPoolFactoryClass()
DataEndpoint
getSecureClientPoolFactoryClass in class DataEndpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||