eXo Kernel :: RPC Service Extension :: JGroups 3 Implementation 2.5.0-Alpha2

org.exoplatform.services.rpc.jgv3
Class RPCServiceImpl

java.lang.Object
  extended by org.exoplatform.services.rpc.impl.AbstractRPCService
      extended by org.exoplatform.services.rpc.jgv3.RPCServiceImpl
All Implemented Interfaces:
RPCService, org.jgroups.blocks.RequestHandler, org.jgroups.MembershipListener, Startable

public class RPCServiceImpl
extends AbstractRPCService

This class is the implementation of the AbstractRPCService for JGroups 3.

Version:
$Id$
Author:
Nicolas Filotto

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)
          
protected  org.jgroups.Channel createChannel()
          
protected  org.jgroups.Address getLocalAddress()
          
protected  List<org.jgroups.Address> getMembers(org.jgroups.View view)
          
protected  void setObject(org.jgroups.Message m, Object o)
          
 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

RPCServiceImpl

public RPCServiceImpl(ExoContainerContext ctx,
                      InitParams params,
                      ConfigurationManager configManager)

Method Detail

getLocalAddress

protected org.jgroups.Address getLocalAddress()

Specified by:
getLocalAddress in class AbstractRPCService

castMessage

protected org.jgroups.util.RspList<Object> castMessage(List<org.jgroups.Address> dests,
                                                       org.jgroups.Message msg,
                                                       boolean synchronous,
                                                       long timeout)
                                                throws Exception

Specified by:
castMessage in class AbstractRPCService
Throws:
Exception

createChannel

protected org.jgroups.Channel createChannel()
                                     throws Exception

Specified by:
createChannel in class AbstractRPCService
Throws:
Exception

unblock

public void unblock()


getMembers

protected List<org.jgroups.Address> getMembers(org.jgroups.View view)

Specified by:
getMembers in class AbstractRPCService

setObject

protected void setObject(org.jgroups.Message m,
                         Object o)

Specified by:
setObject in class AbstractRPCService

eXo Kernel :: RPC Service Extension :: JGroups 3 Implementation 2.5.0-Alpha2

Copyright © 2013 eXo Platform SAS. All Rights Reserved.