Package org.jboss.as.clustering

Examples of org.jboss.as.clustering.GroupMembershipNotifier


    protected ClusterNode node3 = new MockClusterNode(3);

    @Test
    public void start() throws Exception {
        GroupRpcDispatcher rpcDispatcher = mock(GroupRpcDispatcher.class);
        GroupMembershipNotifier notifier = mock(GroupMembershipNotifier.class);
        LocalLockHandler handler = mock(LocalLockHandler.class);
        try {
            createClusteredLockManager(null, rpcDispatcher, notifier, handler);
            fail("Null serviceHAName should prevent construction");
        } catch (IllegalArgumentException good) {
View Full Code Here


        verify(handler, never()).unlockFromCluster("test", other);
    }

    protected TesteeSet<T> getTesteeSet(ClusterNode node, int viewPos, int viewSize) throws Exception {
        GroupRpcDispatcher rpcDispatcher = mock(GroupRpcDispatcher.class);
        GroupMembershipNotifier notifier = mock(GroupMembershipNotifier.class);
        LocalLockHandler handler = mock(LocalLockHandler.class);
        when(rpcDispatcher.isConsistentWith(notifier)).thenReturn(true);
        when(rpcDispatcher.getClusterNode()).thenReturn(node);
        when(rpcDispatcher.getGroupName()).thenReturn("TestPartition");
View Full Code Here

        }
    }

    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);
View Full Code Here

TOP

Related Classes of org.jboss.as.clustering.GroupMembershipNotifier

Copyright © 2018 www.massapicom. 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.