Examples of CoreGroupCommunicationService


Examples of org.jboss.as.clustering.impl.CoreGroupCommunicationService

        String container = containerServiceName.getSimpleName();
        ServiceName lockManagerServiceName = SharedLocalYieldingClusterLockManagerService.getServiceName(container);
        ServiceName registryServiceName = cacheServiceName.append("registry");
        synchronized (this) {
            if (serviceContainer.getService(lockManagerServiceName) == null) {
                new CoreGroupCommunicationService(SCOPE_ID).build(target, container).setInitialMode(ServiceController.Mode.ON_DEMAND).install();
                new SharedLocalYieldingClusterLockManagerService(container).build(target).setInitialMode(ServiceController.Mode.ON_DEMAND).install();
            }
            if (serviceContainer.getService(registryServiceName) == null) {
                new RegistryService<String, Void>(this.registryEntryProvider).build(target, registryServiceName, cacheServiceName).install();
            }
View Full Code Here

Examples of org.jboss.as.clustering.impl.CoreGroupCommunicationService

        ServiceName lockManagerServiceName = SharedLocalYieldingClusterLockManagerService.getServiceName(container);
        ServiceName registryServiceName = cacheServiceName.append("registry");
        synchronized (this) {
            if (registry.getService(lockManagerServiceName) == null) {
                // AS7-3906 Ensure that the cache manager's rpc dispatcher starts before GroupCommunicationService's
                new CoreGroupCommunicationService(SCOPE_ID).build(target, container).addDependency(cacheServiceName).setInitialMode(ServiceController.Mode.ON_DEMAND).install();
                new SharedLocalYieldingClusterLockManagerService(container).build(target).setInitialMode(ServiceController.Mode.ON_DEMAND).install();
            }
            if (registry.getService(registryServiceName) == null) {
                new RegistryService<String, Void>(this.registryEntryProvider).build(target, registryServiceName, cacheServiceName).install();
            }
View Full Code Here

Examples of org.jboss.as.clustering.impl.CoreGroupCommunicationService

        return this.lockManager;
    }

    @Override
    protected void start() throws Exception {
        CoreGroupCommunicationService service = this.service.getValue();
        this.lockManager = new SharedLocalYieldingClusterLockManager(this.name, service, service);
        this.lockManager.start();
    }
View Full Code Here

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

      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

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

      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

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

      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

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

            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

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

         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

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

         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

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

      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
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.