Package com.sun.sgs.test.impl.service.task.TestTaskServiceImpl

Examples of com.sun.sgs.test.impl.service.task.TestTaskServiceImpl.Counter.increment()


        txnSchedulerZero.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.scheduleTask(new TestTask());
                    counter.increment();
                }
            }, id);

        Thread.sleep(500);
        assertCounterClearXAction("An immediate task did not run");
View Full Code Here


        txnSchedulerZero.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.scheduleTask(new TestTask(), 100L);
                    counter.increment();
                }
            }, id);

        Thread.sleep(500);
        assertCounterClearXAction("A delayed task did not run");
View Full Code Here

        txnSchedulerZero.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.scheduleTask(new TestTask(), 100L);
                    counter.increment();
                }
            }, id);

        long expectedNode = additionalNodes[0].getNodeId();
        mappingServiceZero.moveIdentity(getClass(), id, expectedNode);
View Full Code Here

            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.schedulePeriodicTask(new TestTask(), 0L,
                                                         500L);
                    counter.increment();
                    counter.increment();
                }
            }, id);

        Thread.sleep(250);
View Full Code Here

                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.schedulePeriodicTask(new TestTask(), 0L,
                                                         500L);
                    counter.increment();
                    counter.increment();
                }
            }, id);

        Thread.sleep(250);
        assertEquals(expectedNode, lastNodeUsed.get());
View Full Code Here

            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.schedulePeriodicTask(new TestTask(), 100L,
                                                         500L);
                    counter.increment();
                }
            }, id);

        long expectedNode = additionalNodes[0].getNodeId();
        mappingServiceZero.moveIdentity(getClass(), id, expectedNode);
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.