Package org.jboss.cache

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


        // test exceptions.
        for (int i = 0; i < numThreads; i++)
        {
            Assert.assertNull("Thread " + thread[i].getName() + " threw exception!", thread[i].getException());
        }
        c.stopService();
    }

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


          // we should have 0 exceptions
          assertEquals(0, exceptions.size());
       }
       finally
       {
          if (cache != null) cache.stopService();
       }
    }


    public void testCacheContentionOnNode() throws Exception
View Full Code Here

          // we should have 0 exceptions
          assertEquals(0, exceptions.size());
       }
       finally
       {
          if (cache != null) cache.stopService();
       }
    }
}
View Full Code Here

   {
      TreeCache cache = (TreeCache) caches.get(id);
      if (cache != null)
      {
         try {
            cache.stopService();
            cache.destroyService();
            caches.remove(id);
         }
         catch (Exception e) {
            System.out.println("Exception stopping cache " + e.getMessage());
View Full Code Here

      catch(Exception e) {
         fail(e.toString());
      }
      finally {
         if(cache3 != null)
            cache3.stopService();
      }
   }

   public void testStateTransfer() {
      TreeCache cache4=null;
View Full Code Here

         fail(e.toString());
      }
      finally {
         if(cache4 != null) {
            System.out.println("cache4's view: " + cache4.getMembers());
            cache4.stopService();
         }
      }
   }

View Full Code Here

        {
            Assert.assertTrue("Ought to have succeeded!", false);
        }
        // clean up.
        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = null;
    }

View Full Code Here

        Assert.assertEquals("value2", cache1.get(fqn, "key2"));
        Assert.assertNull("Should not have committed", cache2.get(fqn));

        // clean up.
        cache1.stopService();
        cache2.stopService();
        cache1 = null;
        cache2 = null;

    }
View Full Code Here

            assertNoStaleLocks(caches);

        }
        finally
        {
            if (cache2 != null) cache2.stopService();
            cleanup( caches );
        }
    }

    public void testCompleteStateSurvival() throws Exception
View Full Code Here

           assertEquals(0, cache.getNumberOfLocksHeld());

       }
       finally
       {
           cache.stopService();
       }
   }

   /**
    * This one fails now.
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.