Examples of CassandraCacheStoreConfig


Examples of org.infinispan.loaders.cassandra.CassandraCacheStoreConfig

      assert store2.readConsistencyLevel().equals(ConsistencyLevel.EACH_QUORUM);
      assert store2.writeConsistencyLevel().equals(ConsistencyLevel.ANY);
      assert store2.fetchPersistentState();
      assert store2.async().enabled();

      CassandraCacheStoreConfig legacy = store.adapt();
      assert !legacy.isAutoCreateKeyspace();
      assert legacy.isFramed();
      assert legacy.getReadConsistencyLevel().equals(ConsistencyLevel.EACH_QUORUM.toString());
      assert legacy.getWriteConsistencyLevel().equals(ConsistencyLevel.ANY.toString());
      assert legacy.isFetchPersistentState();
      assert legacy.getAsyncStoreConfig().isEnabled();
   }
View Full Code Here

Examples of org.infinispan.loaders.cassandra.CassandraCacheStoreConfig

      return writeConsistencyLevel;
   }

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

      LegacyConfigurationAdaptor.adapt(this, config);

      config.setAutoCreateKeyspace(autoCreateKeyspace);
      config.setConfigurationPropertiesFile(configurationPropertiesFile);
      config.setEntryColumnFamily(entryColumnFamily);
      config.setExpirationColumnFamily(expirationColumnFamily);
      config.setFramed(framed);
      StringBuilder host = new StringBuilder();
      for (CassandraServerConfiguration s : this.servers) {
         if (host.length() > 0)
            host.append(";");
         host.append(s.host());
      }
      config.setHost(host.toString());
      config.setKeyMapper(keyMapper);
      config.setKeySpace(keySpace);
      config.setPassword(password);
      config.setReadConsistencyLevel(readConsistencyLevel);
      config.setSharedKeyspace(sharedKeyspace);
      config.setUsername(username);
      config.setWriteConsistencyLevel(writeConsistencyLevel);

      return config;
   }
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.