Examples of stopService()


Examples of org.jboss.cache.TreeCache.stopService()

        assertNull(table.get(remoteGtx));
        assertNull(table.getLocalTransaction(remoteGtx));

        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());
        cache.stopService();

    }


    public void testSequentialTransactionExists() throws Exception
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        assertEquals(MethodDeclarations.optimisticPrepareMethod, calls.get(0));
        assertEquals(MethodDeclarations.commitMethod, calls.get(1));

        assertEquals(MethodDeclarations.optimisticPrepareMethod, calls.get(2));
        assertEquals(MethodDeclarations.commitMethod, calls.get(3));
        cache.stopService();
    }

}
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        {
            threads[i].join();
        }

        assertEquals((2 * numThreads), listener.getNodesAdded());
        cache.stopService();
    }

    public void testDifferentThreadsSameTransaction() throws Exception
    {
        int numThreads = 100;
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        mgr.commit();

        TestingUtil.sleepThread((long)4000);

        assertEquals(2, listener.getNodesAdded());
        cache.stopService();
    }

    public static Test suite()
    {
        return new TestSuite(ThreadedOptimisticCreateIfNotExistsInterceptorTest.class);
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        assertEquals(MethodDeclarations.optimisticPrepareMethod, calls.get(0));
        assertEquals(MethodDeclarations.commitMethod, calls.get(1));

        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());
        cache.stopService();

    }

    public void testRollbackTransaction() throws Exception
    {
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        assertEquals(MethodDeclarations.rollbackMethod, calls.get(0));


        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());
        cache.stopService();

    }

    public void testEmptyLocalTransaction() throws Exception
    {
View Full Code Here

Examples of org.jboss.cache.TreeCache.stopService()

        assertNull(mgr.getTransaction());

        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());

        cache.stopService();
    }

    public void testEmptyRollbackLocalTransaction() throws Exception
    {
View Full Code Here

Examples of org.jboss.cache.TreeCacheMBean.stopService()

      tm.suspend();
     
      // Confirm that B's tx replicated
      assertTrue(cacheA.exists("/EXISTS"));
     
      cacheB.stopService();
      cacheB.destroyService();
     
      while (cacheA.getMembers().size() > 1)
      {
         try
View Full Code Here

Examples of org.jvnet.hudson.wmi.Win32Service.StopService()

            SWbemServices services = WMI.connect(session, determineHost(computer));
            String id = WindowsSlaveInstaller.generateServiceId(computer.getNode().getRemoteFS());
            Win32Service slaveService = services.getService(id);
            if(slaveService!=null) {
                listener.getLogger().println(Messages.ManagedWindowsServiceLauncher_StoppingService());
                slaveService.StopService();
                listener.getLogger().println(Messages.ManagedWindowsServiceLauncher_UnregisteringService());
                slaveService.Delete();
            }
            //destroy session to free the socket 
            JISession.destroySession(session);
View Full Code Here

Examples of org.rssowl.ui.internal.NewsService.stopService()

    NewsModel.getDefault().getPersistenceLayer().getApplicationLayer().setNewsState(feed.getNews(), INews.State.READ, true, false);
    assertEquals(0, getUnreadCount(feed));
    assertEquals(0, getNewCount(feed));

    /* Simulate Shutdown */
    service.stopService();

    NewsModel.getDefault().getTypesFactory().createNews(null, feed, new Date()); //$NON-NLS-1$
    feed = NewsModel.getDefault().getPersistenceLayer().getModelDAO().saveFeed(feed);

    NewsModel.getDefault().getTypesFactory().createNews(null, feed, new Date()); //$NON-NLS-1$
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.