Examples of MemcachedServerConfigurationBuilder


Examples of org.infinispan.server.memcached.configuration.MemcachedServerConfigurationBuilder

   protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler,
         List<ServiceController<?>> newControllers) throws OperationFailedException {
      // Read the full model
      ModelNode config = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS));
      // Create the builder
      MemcachedServerConfigurationBuilder configurationBuilder = new MemcachedServerConfigurationBuilder();
      this.configureProtocolServer(configurationBuilder, config);

      final String cacheName;
      if (config.hasDefined(ModelKeys.CACHE)) {
         cacheName = config.get(ModelKeys.CACHE).asString();
         configurationBuilder.defaultCacheName(cacheName);
      } else {
         cacheName = "memcachedCache";
      }

      // Create the service
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.