Examples of HazelcastInstanceProxy


Examples of com.hazelcast.instance.HazelcastInstanceProxy

    @Test(timeout = 90000)
    public void testEventService() throws Exception {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(3);

        HazelcastInstanceProxy h1 = (HazelcastInstanceProxy) factory.newHazelcastInstance();
        HazelcastInstanceProxy h2 = (HazelcastInstanceProxy) factory.newHazelcastInstance();
        HazelcastInstanceProxy h3 = (HazelcastInstanceProxy) factory.newHazelcastInstance();

        CountDownLatch l1 = new CountDownLatch(1000);
        CountDownLatch l2 = new CountDownLatch(1000);
        CountDownLatch l3 = new CountDownLatch(1000);

        ITopic t1 = h1.getTopic("foo");
        ITopic t2 = h2.getTopic("foo");
        ITopic t3 = h3.getTopic("foo");

        t1.addMessageListener(createMessageListener(l1));
        t2.addMessageListener(createMessageListener(l2));
        t3.addMessageListener(createMessageListener(l3));

        MemberImpl m1 = (MemberImpl) h1.getCluster().getLocalMember();
        MemberImpl m2 = (MemberImpl) h2.getCluster().getLocalMember();
        MemberImpl m3 = (MemberImpl) h3.getCluster().getLocalMember();

        Address a1 = m1.getAddress();
        Address a2 = m2.getAddress();
        Address a3 = m3.getAddress();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        }
    }

    @Test
    public void testPreregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        }
    }

    @Test
    public void testMultiPreregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        }
    }

    @Test
    public void testPostregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        }
    }

    @Test
    public void testMultiPostregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        }
    }

    @Test
    public void testManagedPreregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        assertEquals("success", reference.get());
    }

    @Test
    public void testManagedMultiPreregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        assertEquals("success", reference2.get());
    }

    @Test
    public void testManagedPostregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
View Full Code Here

Examples of com.hazelcast.instance.HazelcastInstanceProxy

        assertEquals("success", reference.get());
    }

    @Test
    public void testManagedMultiPostregisteredExecutionCallbackCompletableFuture() throws Exception {
        HazelcastInstanceProxy proxy = (HazelcastInstanceProxy) createHazelcastInstance();
        Field originalField = HazelcastInstanceProxy.class.getDeclaredField("original");
        originalField.setAccessible(true);
        HazelcastInstanceImpl hz = (HazelcastInstanceImpl) originalField.get(proxy);
        NodeEngine nodeEngine = hz.node.nodeEngine;
        ExecutionService es = nodeEngine.getExecutionService();
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.