Package org.jboss.cache

Examples of org.jboss.cache.TreeCacheListener


    {
      Constructor constructor = cacheListenerClass.getConstructor( TreeCache.class );
      Object object = constructor.newInstance( treeCache );
      if ( object instanceof TreeCacheListener )
      {
        TreeCacheListener listener = ( TreeCacheListener ) object;
        treeCache.addTreeCacheListener( listener );
      }
    }
    catch (SecurityException e)
    {
View Full Code Here


      // allow waiting threads to process.
      initialised = true;

      // register a TreeCache Listener to reassign buddies as and when view changes occur

      cache.addTreeCacheListener(new TreeCacheListener()
      {
         private Vector oldMembers;

         public void nodeCreated(Fqn fqn)
         {
View Full Code Here

      cache_ = new TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure(cache_, "META-INF/local-passivation-service.xml"); // read in generic local xml
      cache_.setCacheLoaderConfiguration(getSingleCacheLoaderConfig(true, "/", DummyInMemoryCacheLoader.class.getName(), null, false, true, false, false));
      cache_.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      TreeCacheListener listener = new TestCacheListener();
      cache_.addTreeCacheListener(listener);
      cache_.startService();
   }
View Full Code Here

   {
       final List notifications = new ArrayList();
       assertNotNull("MBeanServer is null.", m_server);
       assertNotNull("Cache is null.", cache);

       TreeCacheListener listener = new TreeCacheListener()
       {

           public void nodeCreated(Fqn fqn)
           {
               notifications.add("Created " + fqn);
View Full Code Here

      // allow waiting threads to process.
      initialised = true;

      // register a TreeCache Listener to reassign buddies as and when view changes occur

      cache.addTreeCacheListener(new TreeCacheListener()
      {
         private Vector oldMembers;

         public void nodeCreated(Fqn fqn)
         {
View Full Code Here

TOP

Related Classes of org.jboss.cache.TreeCacheListener

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.