public CConfigurationCache(CoprocessorEnvironment env, String tablePrefix, String maxLifetimeProperty, int defaultMaxLifetime) { this.cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); this.maxLifetimeProperty = maxLifetimeProperty; this.defaultMaxLifetime = defaultMaxLifetime; }
@Override public CConfiguration read() throws IOException { return read(Type.DEFAULT); } }
public CConfigurationCache(CoprocessorEnvironment env, String tablePrefix, String maxLifetimeProperty, int defaultMaxLifetime) { this.cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); this.maxLifetimeProperty = maxLifetimeProperty; this.defaultMaxLifetime = defaultMaxLifetime; }
@Override public CConfiguration read() throws IOException { return read(Type.DEFAULT); } }
@Override public void setConf(Configuration conf) { super.setConf(conf); this.configReader = new CoprocessorCConfigurationReader(env, tablePrefix); }
@Override public void setConf(Configuration conf) { super.setConf(conf); this.configReader = new CoprocessorCConfigurationReader(env, tablePrefix); }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase11ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase12CDH570ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase10ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase10ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase11ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new HBase12CDH570ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }