public class LoadBalancingDataPublisher extends Object
| Constructor and Description |
|---|
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups) |
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent) |
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent,
boolean shareStreamDefinitionCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReceiverGroup(ReceiverGroup aReceiverGroup) |
void |
addStreamDefinition(org.wso2.carbon.databridge.commons.StreamDefinition definition) |
void |
addStreamDefinition(String streamDefn,
String streamName,
String version) |
boolean |
isStreamDefinitionAdded(org.wso2.carbon.databridge.commons.StreamDefinition streamDefinition)
Returns a boolean whether the stream definition is already
added to cache in async data publisher
|
boolean |
isStreamDefinitionAdded(String streamName,
String version)
Returns a boolean whether the stream definition is already
added to cache in async data publisher
|
void |
publish(org.wso2.carbon.databridge.commons.Event event)
Publish the event asynchronously.
|
void |
publish(String streamName,
String streamVersion,
org.wso2.carbon.databridge.commons.Event event)
Publish the event asynchronously.
|
void |
publish(String streamName,
String streamVersion,
long timeStamp,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray)
Publish the event asynchronously.
|
void |
publish(String streamName,
String streamVersion,
long timeStamp,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
Publish the event asynchronously.
|
void |
publish(String streamName,
String streamVersion,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray)
Publish the event asynchronously.
|
void |
publish(String streamName,
String streamVersion,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
Publish the event asynchronously.
|
void |
stop() |
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups)
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups, Agent agent)
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups, Agent agent, boolean shareStreamDefinitionCache)
public void addReceiverGroup(ReceiverGroup aReceiverGroup)
public void publish(String streamName, String streamVersion, long timeStamp, Object[] metaDataArray, Object[] correlationDataArray, Object[] payloadDataArray, Map<String,String> arbitraryDataMap) throws AgentException
streamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forstreamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is fortimeStamp - Timestamp of the eventmetaDataArray - metadata array of the eventcorrelationDataArray - correlation array of the eventpayloadDataArray - payload array of the eventarbitraryDataMap - arbitrary mata (as meta.AgentExceptionpublic void publish(String streamName, String streamVersion, long timeStamp, Object[] metaDataArray, Object[] correlationDataArray, Object[] payloadDataArray) throws AgentException
streamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forstreamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is fortimeStamp - Timestamp of the eventmetaDataArray - metadata array of the eventcorrelationDataArray - correlation array of the eventpayloadDataArray - payload array of the eventAgentExceptionpublic void publish(String streamName, String streamVersion, Object[] metaDataArray, Object[] correlationDataArray, Object[] payloadDataArray, Map<String,String> arbitraryDataMap) throws AgentException
streamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forstreamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is formetaDataArray - metadata array of the eventcorrelationDataArray - correlation array of the eventpayloadDataArray - payload array of the eventarbitraryDataMap - arbitrary mata (as meta.AgentExceptionpublic void publish(String streamName, String streamVersion, Object[] metaDataArray, Object[] correlationDataArray, Object[] payloadDataArray) throws AgentException
streamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forstreamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is formetaDataArray - metadata array of the eventcorrelationDataArray - correlation array of the eventpayloadDataArray - payload array of the eventAgentExceptionpublic void publish(String streamName, String streamVersion, org.wso2.carbon.databridge.commons.Event event) throws AgentException
streamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forstreamName - Name of the stream which the events is forstreamVersion - Version of the stream which the events is forevent - Event which should be publishedAgentExceptionpublic void publish(org.wso2.carbon.databridge.commons.Event event)
throws AgentException
event - Event which should be publishedAgentExceptionpublic void addStreamDefinition(String streamDefn, String streamName, String version)
public void addStreamDefinition(org.wso2.carbon.databridge.commons.StreamDefinition definition)
public boolean isStreamDefinitionAdded(String streamName, String version)
streamName - Name of the stream needed to checkversion - version of the stream needed to checkpublic boolean isStreamDefinitionAdded(org.wso2.carbon.databridge.commons.StreamDefinition streamDefinition)
streamDefinition - Object of the stream definition needed to check in the cachepublic void stop()
Copyright © 2015 WSO2. All rights reserved.