Package org.jboss.ha.framework.interfaces

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


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

      // remove replicant node
      drm.remove(this.name);
    
      // unregister
      drm.unregisterListener(this.name, this);
   }
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.getServiceHAName());
   }
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

      // Place this data in the various maps
      registerBeanClusteringInfo(info);
     
      // IMPORTANT: This must be done after the HATarget is instantiated above
      // or we will get a notification from our own work instantiating the HATarget
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.registerListener(familyInfoName, this);
     
      // Notify listeners of the addition. We do this after we register
      // with the DRM so the listener won't know about the bean until our
      // locally initiated DRM events have finished
      List<ProxyClusteringRegistryListener> toNotify = null;
View Full Code Here

      // Place this data in the various maps
      registerBeanClusteringInfo(info);
     
      // IMPORTANT: This must be done after the HATarget is instantiated above
      // or we will get a notification from our own work instantiating the HATarget
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.registerListener(familyInfoName, this);
     
      // Notify listeners of the addition. We do this after we register
      // with the DRM so the listener won't know about the bean until our
      // locally initiated DRM events have finished
      List<ProxyClusteringRegistryListener> toNotify = null;
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

    */
   public void start() throws Exception
   {
      partition.registerRPCHandler(getServiceHAName(), rpcTarget);
     
      DistributedReplicantManager drm = partition.getDistributedReplicantManager();
      drm.add(getServiceHAName(), partition.getClusterNode());
      coordinator = drm.isMasterReplica(getServiceHAName());
      drm.registerListener(getServiceHAName(), drmListener);
     
      statusCheck();
   }
View Full Code Here

    *
    * @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

   {
      if (!deadMembersKnown)
      {
         try
         {
            DistributedReplicantManager drm = partition.getDistributedReplicantManager();
            List<ClusterNode> nodes = drm.lookupReplicantsNodes(getServiceHAName());
            ClusterNode coord = (nodes != null && nodes.size() > 0 ? nodes.get(0) : null);
            if (coord != null && coord.equals(partition.getClusterNode()) == false)
            {
               Object rsp = partition.callMethodOnNode(getServiceHAName(), "getDiscrepancies", NULL_ARGS, NULL_TYPES, 60000, coord);
               if (rsp instanceof RemoteDiscrepancies)
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.