Package org.jboss.ha.core.framework.server

Examples of org.jboss.ha.core.framework.server.CoreGroupCommunicationService$ClusterNodeFactoryImpl


      LockManagerEntry(Cache<?, ?> cache)
      {
         JGroupsTransport transport = (JGroupsTransport) cache.getAdvancedCache().getRpcManager().getTransport();
         Channel channel = transport.getChannel();
        
         this.service = new CoreGroupCommunicationService();
         this.service.setChannel(channel);
         this.service.setScopeId(SCOPE_ID);
        
         try
         {
View Full Code Here


      private final Set<String> caches = new HashSet<String>();
     
      LockManagerEntry(Channel channel)
      {
         this.channelName = channel.getName();
         this.service = new CoreGroupCommunicationService();
         this.service.setChannel(channel);
         this.service.setScopeId(SCOPE_ID);
        
         try
         {
View Full Code Here

      private final CoreGroupCommunicationService service;
      private final Set<String> caches = new HashSet<String>();
     
      LockManagerEntry(Channel channel)
      {
         this.service = new CoreGroupCommunicationService();
         this.service.setChannel(channel);
         this.service.setScopeId(SCOPE_ID);
        
         try
         {
View Full Code Here

            String cacheName = getCacheName(manager);
            Cache<Object, Object> cache = container.getCache(cacheName);
            JGroupsTransport transport = (JGroupsTransport) cache.getAdvancedCache().getRpcManager().getTransport();
            Channel channel = transport.getChannel();
           
            CoreGroupCommunicationService gcs = new CoreGroupCommunicationService();
            gcs.setChannel(channel);
            gcs.setScopeId(SCOPE_ID);
           
            try
            {
               gcs.start();
            }
            catch (Exception e)
            {
               throw new IllegalStateException("Unexpected exception while starting group communication service for " + containerName);
            }
           
            lockManager = new SharedLocalYieldingClusterLockManager(SERVICE_NAME, gcs, gcs);
           
            try
            {
               lockManager.start();
              
               this.lockManagers.put(containerName, lockManager);
            }
            catch (Exception e)
            {
               gcs.stop();
               throw new IllegalStateException("Unexpected exception while starting lock manager for " + containerName);
            }
         }
        
         return lockManager;
View Full Code Here

         if (lockManager == null)
         {
            JGroupsTransport transport = (JGroupsTransport) cache.getAdvancedCache().getRpcManager().getTransport();
            Channel channel = transport.getChannel();
           
            CoreGroupCommunicationService gcs = new CoreGroupCommunicationService();
            gcs.setChannel(channel);
            gcs.setScopeId(SCOPE_ID);
           
            try
            {
               gcs.start();
            }
            catch (Exception e)
            {
               throw new IllegalStateException("Unexpected exception while starting group communication service for " + clusterName);
            }
           
            lockManager = new SharedLocalYieldingClusterLockManager(SERVICE_NAME, gcs, gcs);
           
            try
            {
               lockManager.start();
            }
            catch (Exception e)
            {
               gcs.stop();
               throw new IllegalStateException("Unexpected exception while starting lock manager for " + clusterName);
            }
           
            this.lockManagers.put(clusterName, lockManager);
         }
View Full Code Here

         if (lockManager == null)
         {
            JGroupsTransport transport = (JGroupsTransport) cache.getAdvancedCache().getRpcManager().getTransport();
            Channel channel = transport.getChannel();
           
            CoreGroupCommunicationService gcs = new CoreGroupCommunicationService();
            gcs.setChannel(channel);
            gcs.setScopeId(SCOPE_ID);
           
            try
            {
               gcs.start();
            }
            catch (Exception e)
            {
               throw new IllegalStateException("Unexpected exception while starting group communication service for " + clusterName);
            }
           
            lockManager = new SharedLocalYieldingClusterLockManager(SERVICE_NAME, gcs, gcs);
           
            try
            {
               lockManager.start();
            }
            catch (Exception e)
            {
               gcs.stop();
               throw new IllegalStateException("Unexpected exception while starting lock manager for " + clusterName);
            }
           
            this.lockManagers.put(clusterName, lockManager);
         }
View Full Code Here

      private final CoreGroupCommunicationService service;
      private final Set<String> caches = new HashSet<String>();
     
      LockManagerEntry(Channel channel)
      {
         this.service = new CoreGroupCommunicationService();
         this.service.setChannel(channel);
         this.service.setScopeId(SCOPE_ID);
        
         try
         {
View Full Code Here

      private final Set<String> caches = new HashSet<String>();
     
      LockManagerEntry(Channel channel)
      {
         this.channelName = channel.getName();
         this.service = new CoreGroupCommunicationService();
         this.service.setChannel(channel);
         this.service.setScopeId(SCOPE_ID);
        
         try
         {
View Full Code Here

TOP

Related Classes of org.jboss.ha.core.framework.server.CoreGroupCommunicationService$ClusterNodeFactoryImpl

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.