public class ThriftEventPublisher extends EventPublisher
| Constructor and Description |
|---|
ThriftEventPublisher(EventQueue<org.wso2.carbon.databridge.commons.Event> eventQueue,
org.apache.commons.pool.impl.GenericKeyedObjectPool transportPool,
Semaphore queueSemaphore,
int maxMessageBundleSize,
DataPublisherConfiguration dataPublisherConfiguration,
AgentAuthenticator agentAuthenticator,
ThreadPoolExecutor threadPool) |
| Modifier and Type | Method and Description |
|---|---|
protected org.wso2.carbon.databridge.commons.thrift.data.ThriftEventBundle |
convertToEventBundle(Object eventBundle,
org.wso2.carbon.databridge.commons.Event event,
String sessionId) |
protected String |
defineStream(Object client,
String sessionId,
String streamDefinition) |
protected boolean |
deleteStream(Object client,
String currentSessionId,
String streamId) |
protected boolean |
deleteStream(Object client,
String currentSessionId,
String streamName,
String streamVersion) |
protected String |
findStreamId(Object client,
String currentSessionId,
String name,
String version) |
protected int |
getNumberOfEvents(Object eventBundle) |
protected String |
getSessionId(Object eventBundle) |
protected void |
setSessionId(Object eventBundle,
String sessionId) |
attemptReconnection, defineStream, deleteStream, deleteStream, findStreamId, registerReceiverStateObserver, runpublic ThriftEventPublisher(EventQueue<org.wso2.carbon.databridge.commons.Event> eventQueue, org.apache.commons.pool.impl.GenericKeyedObjectPool transportPool, Semaphore queueSemaphore, int maxMessageBundleSize, DataPublisherConfiguration dataPublisherConfiguration, AgentAuthenticator agentAuthenticator, ThreadPoolExecutor threadPool)
protected int getNumberOfEvents(Object eventBundle)
getNumberOfEvents in class EventPublisherprotected org.wso2.carbon.databridge.commons.thrift.data.ThriftEventBundle convertToEventBundle(Object eventBundle, org.wso2.carbon.databridge.commons.Event event, String sessionId)
convertToEventBundle in class EventPublisherprotected void setSessionId(Object eventBundle, String sessionId)
setSessionId in class EventPublisherprotected String getSessionId(Object eventBundle)
getSessionId in class EventPublisherprotected String defineStream(Object client, String sessionId, String streamDefinition) throws org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException, org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionException, EventPublisherException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException, org.wso2.carbon.databridge.commons.exception.StreamDefinitionException
defineStream in class EventPublisherorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionorg.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionExceptionEventPublisherExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionorg.wso2.carbon.databridge.commons.exception.StreamDefinitionExceptionprotected String findStreamId(Object client, String currentSessionId, String name, String version) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException, EventPublisherException
findStreamId in class EventPublisherorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionEventPublisherExceptionprotected boolean deleteStream(Object client, String currentSessionId, String streamId) throws EventPublisherException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
deleteStream in class EventPublisherEventPublisherExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionprotected boolean deleteStream(Object client, String currentSessionId, String streamName, String streamVersion) throws EventPublisherException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
deleteStream in class EventPublisherEventPublisherExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionCopyright © 2015 WSO2. All rights reserved.