Package org.infinispan.loaders.hbase

Examples of org.infinispan.loaders.hbase.HBaseCacheStoreConfig


      assert store2.hbaseZookeeperClientPort() == 4321;
      assert store2.sharedTable();
      assert store2.fetchPersistentState();
      assert store2.async().enabled();

      HBaseCacheStoreConfig legacy = store.adapt();
      assert !legacy.isAutoCreateTable();
      assert legacy.getEntryColumnFamily().equals("ECF");
      assert legacy.getEntryTable().equals("ET");
      assert legacy.getEntryValueField().equals("EVF");
      assert legacy.getExpirationColumnFamily().equals("XCF");
      assert legacy.getExpirationTable().equals("XT");
      assert legacy.getExpirationValueField().equals("XVF");
      assert legacy.getHbaseZookeeperPropertyClientPort() == 4321;
      assert legacy.isFetchPersistentState();
      assert legacy.getAsyncStoreConfig().isEnabled();
   }
View Full Code Here


      return sharedTable;
   }

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

      LegacyConfigurationAdaptor.adapt(this, config);

      config.setAutoCreateTable(autoCreateTable);
      config.setEntryColumnFamily(entryColumnFamily);
      config.setEntryTable(entryTable);
      config.setEntryValueField(entryValueField);
      config.setExpirationColumnFamily(expirationColumnFamily);
      config.setExpirationTable(expirationTable);
      config.setExpirationValueField(expirationValueField);
      config.setHbaseZookeeperPropertyClientPort(hbaseZookeeperClientPort);
      config.setHbaseZookeeperQuorum(hbaseZookeeperQuorumHost);
      config.setKeyMapper(keyMapper);
      config.setSharedTable(sharedTable);

      return config;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.loaders.hbase.HBaseCacheStoreConfig

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.