public abstract class AbstractDataReceiver extends Object implements DataBridgeReceiverService
| Constructor and Description |
|---|
AbstractDataReceiver() |
| Modifier and Type | Method and Description |
|---|---|
String |
defineStream(String sessionId,
String streamDefinition) |
String |
defineStream(String sessionId,
String streamDefinition,
String indexDefinition) |
boolean |
deleteStream(String sessionId,
String streamId) |
boolean |
deleteStream(String sessionId,
String streamName,
String streamVersion) |
String |
findStreamId(String sessionId,
String streamName,
String streamVersion) |
List<org.wso2.carbon.databridge.commons.StreamDefinition> |
getAllStreamDefinitions(String sessionId) |
protected abstract DataBridgeReceiverService |
getDatabridgeReceiver() |
DataBridgeConfiguration |
getInitialConfig() |
org.wso2.carbon.databridge.commons.StreamDefinition |
getStreamDefinition(String sessionId,
String streamName,
String streamVersion) |
String |
login(String username,
String password) |
void |
logout(String sessionId) |
void |
publish(Object eventBundle,
String sessionId,
EventConverter eventConverter) |
void |
saveStreamDefinition(String sessionId,
org.wso2.carbon.databridge.commons.StreamDefinition streamDefinition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubscribe, unsubscribepublic String defineStream(String sessionId, String streamDefinition) throws org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException, org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
defineStream in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionorg.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic String defineStream(String sessionId, String streamDefinition, String indexDefinition) throws org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException, org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
defineStream in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionorg.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic String findStreamId(String sessionId, String streamName, String streamVersion) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
findStreamId in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic boolean deleteStream(String sessionId, String streamId) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
deleteStream in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic boolean deleteStream(String sessionId, String streamName, String streamVersion) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
deleteStream in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic void publish(Object eventBundle, String sessionId, EventConverter eventConverter) throws org.wso2.carbon.databridge.commons.exception.UndefinedEventTypeException, org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
publish in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.UndefinedEventTypeExceptionorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic String login(String username, String password) throws org.wso2.carbon.databridge.commons.exception.AuthenticationException
login in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.AuthenticationExceptionpublic void logout(String sessionId) throws Exception
logout in interface DataBridgeReceiverServiceExceptionpublic org.wso2.carbon.databridge.commons.StreamDefinition getStreamDefinition(String sessionId, String streamName, String streamVersion) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException, StreamDefinitionNotFoundException, StreamDefinitionStoreException
getStreamDefinition in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionStreamDefinitionNotFoundExceptionStreamDefinitionStoreExceptionpublic List<org.wso2.carbon.databridge.commons.StreamDefinition> getAllStreamDefinitions(String sessionId) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException
getAllStreamDefinitions in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionpublic void saveStreamDefinition(String sessionId, org.wso2.carbon.databridge.commons.StreamDefinition streamDefinition) throws org.wso2.carbon.databridge.commons.exception.SessionTimeoutException, StreamDefinitionStoreException, org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException
saveStreamDefinition in interface DataBridgeReceiverServiceorg.wso2.carbon.databridge.commons.exception.SessionTimeoutExceptionStreamDefinitionStoreExceptionorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionpublic DataBridgeConfiguration getInitialConfig()
getInitialConfig in interface DataBridgeReceiverServiceprotected abstract DataBridgeReceiverService getDatabridgeReceiver()
Copyright © 2015 WSO2. All rights reserved.