public class RPCServiceImpl extends AbstractRPCService
AbstractRPCService for JGroups 3.AbstractRPCService.MemberHasLeftException, AbstractRPCService.MessageBody, AbstractRPCService.Statechannel, CLUSTER_NAME, configurator, coordinator, DEFAULT_RETRY_TIMEOUT, DEFAULT_TIMEOUT, dispatcher, isCoordinator, members, PARAM_ALLOW_FAILOVER, PARAM_CLUSTER_NAME, PARAM_DEFAULT_TIMEOUT, PARAM_JGROUPS_CONFIG, PARAM_RETRY_TIMEOUTACCESS_RPC_SERVICE_PERMISSION| Constructor and Description |
|---|
RPCServiceImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager) |
| Modifier and Type | Method and Description |
|---|---|
protected org.jgroups.util.RspList<Object> |
castMessage(List<org.jgroups.Address> dests,
org.jgroups.Message msg,
boolean synchronous,
long timeout)
Cast a message to all the given members
|
protected org.jgroups.Channel |
createChannel()
Create a channel
|
protected org.jgroups.Address |
getLocalAddress()
Returns the channel's own address.
|
protected List<org.jgroups.Address> |
getMembers(org.jgroups.View view)
Returns a reference to the List of members (ordered)
Do NOT change this list, hence your will invalidate the view
Make a copy if you have to modify it.
|
protected void |
setObject(org.jgroups.Message m,
Object o)
Takes an object and uses Java serialization to generate the byte[] buffer which
is set in the message.
|
void |
unblock() |
block, excecuteCommand, executeCommandOnAllNodes, executeCommandOnAllNodes, executeCommandOnAllNodesMain, executeCommandOnCoordinator, executeCommandOnCoordinator, executeCommandOnCoordinatorMain, getClusterName, getCommand, getDefaultTimeout, getRetryTimeout, handle, isAllowFailover, isCoordinator, registerCommand, registerTopologyChangeListener, start, stop, suspect, unregisterCommand, unregisterTopologyChangeListener, viewAcceptedpublic RPCServiceImpl(ExoContainerContext ctx, InitParams params, ConfigurationManager configManager)
protected org.jgroups.Address getLocalAddress()
send() operation.getLocalAddress in class AbstractRPCServiceprotected org.jgroups.util.RspList<Object> castMessage(List<org.jgroups.Address> dests, org.jgroups.Message msg, boolean synchronous, long timeout) throws Exception
castMessage in class AbstractRPCServicedests - The members to which the message is to be sent.msg - The message to be sent to the members.synchronous - Indicates whether the message must be sent in synchronous or asynchronous mode.timeout - If 0: wait forever. Otherwise, wait for responses or timeout time.Object and associated to its sender.Exception - if any error occur while casting the messageprotected org.jgroups.Channel createChannel()
throws Exception
createChannel in class AbstractRPCServiceException - if any error occur while creating the channelpublic void unblock()
protected List<org.jgroups.Address> getMembers(org.jgroups.View view)
getMembers in class AbstractRPCServiceprotected void setObject(org.jgroups.Message m,
Object o)
setObject in class AbstractRPCServiceCopyright © 2017 eXo Platform SAS. All Rights Reserved.