Examples of unregisterListener()


Examples of org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.unregisterListener()

            assertTrue("Async handler thread is blocking", blt.isBlocking());
           
            assertNull("No exception in JGroups thread", blt.getException());
         }
        
         drm.unregisterListener("TEST", blt);
        
         sleepThread(50);
        
         // Test going through remove
         blt = new BlockingListenerThread(drm, false, sender);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

     
      try
      {
         this.partition.unregisterRPCHandler(this.RPC_HANDLER_NAME, this);
         ds.unregisterDSListenerEx(this.RPC_HANDLER_NAME, this);
         drm.unregisterListener(this.RPC_HANDLER_NAME, this);
         drm.remove(this.RPC_HANDLER_NAME);

         this.invalidationSubscription.unregister();

         ds.remove(this.RPC_HANDLER_NAME, this.partition.getNodeName(), true);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

    * @throws Exception
    */
   public void stop() throws Exception
   {
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.unregisterListener(getServiceHAName(), drmListener);
      drm.remove(getServiceHAName());
     
      coordinator = false;

      partition.unregisterRPCHandler(getServiceHAName(), rpcTarget);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

   }
  
   public void shutdown() throws Exception
   {
      DistributedReplicantManager drm = this.partition.getDistributedReplicantManager();
      drm.unregisterListener(getServiceHAName(), drmListener);
      drm.remove(getServiceHAName());
      this.partition.unregisterRPCHandler(getServiceHAName(), rpcTarget);
      this.lockSupport.stop();
     
      this.contentManager = null;
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

     
      // Now register the real listener
      drm.registerListener(key, this);
     
      // ...and unregister our temporary one
      drm.unregisterListener(key, listener);
     
      ReplicantView view = this.viewReference.getAndSet(null);
     
      // Process the recorded replicant change
      // Typically this will be the replicant change from drm.add(...)
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

      if (this.partition != null)
      {
         try
         {
            DistributedReplicantManager drm = partition.getDistributedReplicantManager();
            drm.unregisterListener(this.replicantName, this);
            drm.remove(this.replicantName);        
         }
         catch (Exception e)
         {
            log.error("failed to clean existence in current ha partition", e);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

      if (this.partition != null)
      {
         try
         {
            DistributedReplicantManager drm = partition.getDistributedReplicantManager();
            drm.unregisterListener(this.replicantName, this);
            drm.remove(this.replicantName);        
         }
         catch (Exception e)
         {
            log.error("failed to clean existence in current ha partition", e);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

      if (this.partition != null)
      {
         try
         {
            DistributedReplicantManager drm = partition.getDistributedReplicantManager();
            drm.unregisterListener(this.replicantName, this);
            drm.remove(this.replicantName);        
         }
         catch (Exception e)
         {
            log.error("failed to clean existence in current ha partition", e);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

      if (this.partition != null)
      {
         try
         {
            DistributedReplicantManager drm = partition.getDistributedReplicantManager();
            drm.unregisterListener(this.replicantName, this);
            drm.remove(this.replicantName);        
         }
         catch (Exception e)
         {
            log.error("failed to clean existence in current ha partition", e);
View Full Code Here

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager.unregisterListener()

     
      // remove replicant node
      drm.remove(key);
    
      // unregister
      drm.unregisterListener(key, this);
   }

   /**
    * {@inheritDoc}
    * @return the key used by the DRM and partition rpc handler mapping.
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.