Examples of GroupRpcDispatcher


Examples of org.jboss.as.clustering.GroupRpcDispatcher

        } catch (TimeoutException ok) {
        }
    }

    protected TesteeSet getTesteeSet(ClusterNode node, int viewPos, int viewSize) throws Exception {
        GroupRpcDispatcher rpcDispatcher = mock(GroupRpcDispatcher.class);
        GroupMembershipNotifier notifier = mock(GroupMembershipNotifier.class);
        when(rpcDispatcher.isConsistentWith(notifier)).thenReturn(true);
        when(rpcDispatcher.getClusterNode()).thenReturn(node);

        List<ClusterNode> view = getView(node, viewPos, viewSize);
        when(rpcDispatcher.getClusterNodes()).thenReturn(view);

        SharedLocalYieldingClusterLockManager testee = new SharedLocalYieldingClusterLockManager("test", rpcDispatcher, notifier);

        testee.start();
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.GroupRpcDispatcher

   }

   @SuppressWarnings("unchecked")
   protected <T> List<T> callMethodOnPartition(String methodName, Object[] args, Class<?>[] types) throws Exception
   {
      GroupRpcDispatcher dispatcher = this.partition;
      return (List<T>) dispatcher.callMethodOnCluster(this.name, methodName, args, types, true);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.