|
eXo Kernel :: Component :: Common Service 2.5.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rpc.impl.AbstractRPCService
org.exoplatform.services.rpc.jgv3.RPCServiceImpl
public class RPCServiceImpl
This class is the implementation of the AbstractRPCService for JGroups 3.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.exoplatform.services.rpc.impl.AbstractRPCService |
|---|
AbstractRPCService.MemberHasLeftException, AbstractRPCService.MessageBody, AbstractRPCService.State |
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.services.rpc.impl.AbstractRPCService |
|---|
channel, 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_TIMEOUT |
| Fields inherited from interface org.exoplatform.services.rpc.RPCService |
|---|
ACCESS_RPC_SERVICE_PERMISSION |
| Constructor Summary | |
|---|---|
RPCServiceImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.exoplatform.services.rpc.impl.AbstractRPCService |
|---|
block, excecuteCommand, executeCommandOnAllNodes, executeCommandOnAllNodes, executeCommandOnAllNodesMain, executeCommandOnCoordinator, executeCommandOnCoordinator, executeCommandOnCoordinatorMain, getClusterName, getCommand, getDefaultTimeout, getRetryTimeout, handle, isAllowFailover, isCoordinator, registerCommand, registerTopologyChangeListener, start, stop, suspect, unregisterCommand, unregisterTopologyChangeListener, viewAccepted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RPCServiceImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager)
| Method Detail |
|---|
protected org.jgroups.Address getLocalAddress()
#getAddress(). Addresses can be used as destination
in the send() operation.
getLocalAddress in class AbstractRPCService
protected 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 message
protected 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 AbstractRPCService
protected void setObject(org.jgroups.Message m,
Object o)
setObject in class AbstractRPCService
|
eXo Kernel :: Component :: Common Service 2.5.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||