Package org.jboss.ha.framework.interfaces

Examples of org.jboss.ha.framework.interfaces.DistributedReplicantManager


   {
      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


      this.partition.unregisterRPCHandler(this.getHAServiceKey(), this.getRpcHandler());
   }
  
   protected void registerDRMListener() throws Exception
   {
      DistributedReplicantManager drm = this.partition.getDistributedReplicantManager();
     
      String key = this.getHAServiceKey();
     
      drm.registerListener(key, this);

      // this ensures that the DRM knows that this node has the MBean deployed
      drm.add(key, this.getReplicant());
   }
View Full Code Here

      drm.add(key, this.getReplicant());
   }
  
   protected void unregisterDRMListener() throws Exception
   {
      DistributedReplicantManager drm = this.partition.getDistributedReplicantManager();

      String key = this.getHAServiceKey();
     
      // remove replicant node
      drm.remove(key);
    
      // unregister
      drm.unregisterListener(key, this);
   }
View Full Code Here

   public void updateHAPartition(HAPartition partition) throws Exception
   {
      cleanExistenceInCurrentHAPartition();
     
      this.partition = partition;
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.registerListener(this.replicantName, this);
      drm.add(this.replicantName, this.target);
   }
View Full Code Here

   {
      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

    * @see org.jboss.ha.framework.server.HAServiceImpl#registerDRMListener()
    */
   @Override
   protected void registerDRMListener() throws Exception
   {
      DistributedReplicantManager drm = this.getHAPartition().getDistributedReplicantManager();
     
      // Temporary drm listener
      RecordingReplicantListener listener = new RecordingReplicantListener();
     
      String key = this.getHAServiceKey();
     
      // record replicant changes, but don't handle them just yet
      drm.registerListener(key, listener);

      // this ensures that the DRM knows that this node has the singleton deployed
      drm.add(key, this.getReplicant());
     
      // 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

      this.callAsyncMethodOnPartition("stopOldMaster", new Object[0], new Class[0]);
   }

   protected boolean isDRMMasterReplica()
   {
      DistributedReplicantManager drm = this.getHAPartition().getDistributedReplicantManager();

      return drm.isMasterReplica(this.getHAServiceKey());
   }
View Full Code Here

   protected void updateHAPartition(HAPartition partition) throws Exception
   {
      cleanExistenceInCurrentHAPartition();
     
      this.partition = partition;
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.registerListener(this.replicantName, this);
      drm.add(this.replicantName, this.target);
   }
View Full Code Here

   {
      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

      this.partition.unregisterRPCHandler(this.getHAServiceKey(), this.getRpcHandler());
   }
  
   protected void registerDRMListener() throws Exception
   {
      DistributedReplicantManager drm = this.partition.getDistributedReplicantManager();
     
      String key = this.getHAServiceKey();
     
      drm.registerListener(key, this);

      // this ensures that the DRM knows that this node has the MBean deployed
      drm.add(key, this.getReplicant());
   }
View Full Code Here

TOP

Related Classes of org.jboss.ha.framework.interfaces.DistributedReplicantManager

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.