|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.databridge.agent.thrift.lb.LoadBalancingDataPublisher
public class LoadBalancingDataPublisher
Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Constructor Summary | |
|---|---|
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups)
|
|
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent)
|
|
LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent,
boolean shareStreamDefinitionCache)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups)
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent)
public LoadBalancingDataPublisher(ArrayList<ReceiverGroup> receiverGroups,
Agent agent,
boolean shareStreamDefinitionCache)
| Method Detail |
|---|
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.AgentException
public 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 event
AgentException
public 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.AgentException
public 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 event
AgentException
public 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 published
AgentException
public void publish(org.wso2.carbon.databridge.commons.Event event)
throws AgentException
event - Event which should be published
AgentException
public 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 check
public boolean isStreamDefinitionAdded(org.wso2.carbon.databridge.commons.StreamDefinition streamDefinition)
streamDefinition - Object of the stream definition needed to check in the cache
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||