public interface FCRemoting
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getActiveTopics() |
FCMembership |
getMemberShipLocal() |
FCMembership |
getMemberShipRemoteProxy()
returns remote FCMemberShip instance, null if none installed
|
String |
getNodeId() |
FCRemoteServiceProxy |
getRemoteService(String topic)
return the remote service proxy object.
|
FCRemotingListener |
getRemotingListener() |
FCTopicService |
getService(String topic)
return the local instance of a service with given name.
|
TopicStats |
getStats(String name) |
FCTopicConf |
getTopicConfiguration(String name) |
void |
joinCluster(FCClusterConfig config,
String nodeId,
String clusterName) |
void |
joinCluster(String configPath,
String nodeId,
String clusterName)
joins the cluster defined by the given config.
|
void |
setRemotingListener(FCRemotingListener listener) |
void |
start(String serviceName) |
void |
startReceiving(String topicName,
FCBinaryMessageListener listener)
starts listening on the given topic
|
void |
startReceiving(String topicName,
FCTopicService listener) |
<T extends FCTopicService> |
startSending(String topic,
Class<T> fcBinaryTopicServiceClass)
starts sending on the given topic
use this for ConfigBuilder based configs.
|
void |
stopReceiving(String topicName) |
String getNodeId()
FCTopicService getService(String topic)
topic - FCRemoteServiceProxy getRemoteService(String topic)
topic - void joinCluster(String configPath, String nodeId, String clusterName) throws IOException
configPath - nodeId - - name of the process (will make up the adress of a node e.g. as reported in senderId). MUST NOT EXCEED 8 chars.clusterName - - see above. If null, take clustername from config. MUST NOT EXCEED 8 chars.IOExceptionvoid joinCluster(FCClusterConfig config, String nodeId, String clusterName) throws IOException
IOExceptionvoid start(String serviceName)
<T extends FCTopicService> T startSending(String topic, Class<T> fcBinaryTopicServiceClass) throws Exception
T - topic - fcBinaryTopicServiceClass - Exceptionvoid stopReceiving(String topicName)
void startReceiving(String topicName, FCBinaryMessageListener listener)
topicName - void startReceiving(String topicName, FCTopicService listener)
TopicStats getStats(String name)
FCTopicConf getTopicConfiguration(String name)
FCRemotingListener getRemotingListener()
void setRemotingListener(FCRemotingListener listener)
FCMembership getMemberShipRemoteProxy()
FCMembership getMemberShipLocal()
Copyright © 2014. All rights reserved.