Package org.infinispan.topology

Examples of org.infinispan.topology.LocalTopologyManagerImpl


      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(BackupReceiverRepository.class))
         return (T) new BackupReceiverRepositoryImpl();
      else if (componentType.equals(CancellationService.class))
View Full Code Here


      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
         return (T) new DefaultRebalancePolicy();
      else if (componentType.equals(BackupReceiverRepository.class))
View Full Code Here

      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
         return (T) new DefaultRebalancePolicy();
      else if (componentType.equals(BackupReceiverRepository.class))
View Full Code Here

        final String cacheContainerName = address.getElement(address.size() - 2).getValue();
        final String cacheName = address.getElement(address.size() - 1).getValue();
        final ServiceController<?> controller = context.getServiceRegistry(false).getService(
                CacheService.getServiceName(cacheContainerName, cacheName));
        Cache<?, ?> cache = (Cache<?, ?>) controller.getValue();
        LocalTopologyManagerImpl localTopologyManager = (LocalTopologyManagerImpl) cache.getAdvancedCache()
                .getComponentRegistry().getGlobalComponentRegistry().getComponent(LocalTopologyManager.class);
        if (localTopologyManager != null) {
            try {
                if (operation.hasDefined(VALUE)) {
                    ModelNode newValue = operation.get(VALUE);
                    localTopologyManager.setRebalancingEnabled(newValue.asBoolean());
                } else {
                    context.getResult().set(new ModelNode().set(localTopologyManager.isRebalancingEnabled()));
                }
            } catch (Exception e) {
                throw new OperationFailedException(new ModelNode().set(MESSAGES.failedToInvokeOperation(e.getLocalizedMessage())));
            }
        }
View Full Code Here

                CacheService.getServiceName(cacheContainerName, cacheName));
        if (controller != null) {
            Cache<?, ?> cache = (Cache<?, ?>) controller.getValue();
            if (cache != null) {
                ComponentRegistry registry = SecurityActions.getComponentRegistry(cache.getAdvancedCache());
                LocalTopologyManagerImpl localTopologyManager = (LocalTopologyManagerImpl) registry
                      .getGlobalComponentRegistry().getComponent(LocalTopologyManager.class);
                if (localTopologyManager != null) {
                    try {
                        if (operation.hasDefined(VALUE)) {
                            ModelNode newValue = operation.get(VALUE);
                            localTopologyManager.setRebalancingEnabled(newValue.asBoolean());
                        } else {
                            context.getResult().set(new ModelNode().set(localTopologyManager.isRebalancingEnabled()));
                        }
                    } catch (Exception e) {
                        throw new OperationFailedException(new ModelNode().set(MESSAGES.failedToInvokeOperation(e.getLocalizedMessage())));
                    }
                }
View Full Code Here

      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
         return (T) new DefaultRebalancePolicy();
View Full Code Here

      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
         return (T) new DefaultRebalancePolicy();
      else if (componentType.equals(BackupReceiverRepository.class))
View Full Code Here

      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
         return (T) new DefaultRebalancePolicy();
      else if (componentType.equals(BackupReceiverRepository.class))
View Full Code Here

TOP

Related Classes of org.infinispan.topology.LocalTopologyManagerImpl

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.