org.wso2.carbon.databridge.agent.thrift.lb
Class ReceiverGroup
java.lang.Object
org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup
- All Implemented Interfaces:
- ReceiverStateObserver
public class ReceiverGroup
- extends Object
- implements ReceiverStateObserver
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.
|
Method Summary |
void |
addStreamDefinition(org.wso2.carbon.databridge.commons.StreamDefinition streamDefn)
|
void |
addStreamDefinition(String streamDefn,
String streamName,
String version)
|
protected void |
createDataPublishers(Agent agent,
ConcurrentHashMap<String,String> streamDefnCache)
|
void |
notifyConnectionFailure(String receiverUrl,
String username,
String password)
|
void |
notifyConnectionSuccess(String receiverUrl,
String username,
String password)
|
protected void |
publish(org.wso2.carbon.databridge.commons.Event event)
|
protected void |
publish(String streamName,
String streamVersion,
org.wso2.carbon.databridge.commons.Event event)
|
protected void |
publish(String streamName,
String streamVersion,
long timeStamp,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
|
protected void |
publish(String streamName,
String streamVersion,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
|
void |
resendEvents(LinkedBlockingQueue<org.wso2.carbon.databridge.commons.Event> events)
|
void |
resendPublishedData(LinkedBlockingQueue<PublishData> publishDatas)
|
protected void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReceiverGroup
public ReceiverGroup(ArrayList<DataPublisherHolder> properties)
ReceiverGroup
public ReceiverGroup(ArrayList<DataPublisherHolder> properties,
boolean failOver)
createDataPublishers
protected void createDataPublishers(Agent agent,
ConcurrentHashMap<String,String> streamDefnCache)
publish
protected void publish(String streamName,
String streamVersion,
long timeStamp,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
throws AgentException
- Throws:
AgentException
publish
protected void publish(String streamName,
String streamVersion,
Object[] metaDataArray,
Object[] correlationDataArray,
Object[] payloadDataArray,
Map<String,String> arbitraryDataMap)
throws AgentException
- Throws:
AgentException
publish
protected void publish(org.wso2.carbon.databridge.commons.Event event)
publish
protected void publish(String streamName,
String streamVersion,
org.wso2.carbon.databridge.commons.Event event)
throws AgentException
- Throws:
AgentException
addStreamDefinition
public void addStreamDefinition(String streamDefn,
String streamName,
String version)
addStreamDefinition
public void addStreamDefinition(org.wso2.carbon.databridge.commons.StreamDefinition streamDefn)
notifyConnectionFailure
public void notifyConnectionFailure(String receiverUrl,
String username,
String password)
- Specified by:
notifyConnectionFailure in interface ReceiverStateObserver
resendEvents
public void resendEvents(LinkedBlockingQueue<org.wso2.carbon.databridge.commons.Event> events)
- Specified by:
resendEvents in interface ReceiverStateObserver
resendPublishedData
public void resendPublishedData(LinkedBlockingQueue<PublishData> publishDatas)
- Specified by:
resendPublishedData in interface ReceiverStateObserver
notifyConnectionSuccess
public void notifyConnectionSuccess(String receiverUrl,
String username,
String password)
- Specified by:
notifyConnectionSuccess in interface ReceiverStateObserver
stop
protected void stop()
Copyright © 2015 WSO2. All rights reserved.