Examples of CloudCacheStoreConfig

@author Manik Surtani @since 4.0

Examples of org.infinispan.loaders.cloud.CloudCacheStoreConfig

      this.compress = compress;
   }

   @Override
   public CloudCacheStoreConfig adapt() {
      CloudCacheStoreConfig config = new CloudCacheStoreConfig();

      LegacyConfigurationAdaptor.adapt(this, config);

      config.setIdentity(identity);
      config.setPassword(password);
      config.setBucketPrefix(bucketPrefix);
      config.setProxyHost(proxyHost);
      config.setProxyPort(Integer.toString(proxyPort));
      config.setRequestTimeout(requestTimeout);
      config.setLazyPurgingOnly(lazyPurgingOnly);
      config.setCloudService(cloudService);
      config.setCloudServiceLocation(cloudServiceLocation);
      config.setMaxConnections(maxConnections);
      config.setSecure(secure);
      config.setCompress(compress);

      return config;
   }
View Full Code Here

Examples of org.infinispan.loaders.cloud.CloudCacheStoreConfig

      assert store2.proxyPort() == 8080;
      assert store2.secure();
      assert store2.fetchPersistentState();
      assert store2.async().enabled();

      CloudCacheStoreConfig legacy = store.adapt();
      assert legacy.getCloudService().equals("transient");
      assert legacy.getIdentity().equals("me");
      assert legacy.getPassword().equals("s3cr3t");
      assert legacy.getProxyHost().equals("my-proxy");
      assert legacy.getProxyPort().equals("8080");
      assert legacy.isSecure();
      assert legacy.isFetchPersistentState();
      assert legacy.getAsyncStoreConfig().isEnabled();
   }
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.