@Override public void stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 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 HBase11ScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) throws IOException { topicMetadataCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) { if (compactionState != null) { compactionState.stop(); } topicMetadataCacheSupplier.release(); txStateCacheSupplier.release(); }
@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 stop(CoprocessorEnvironment e) { if (compactionState != null) { compactionState.stop(); } topicMetadataCacheSupplier.release(); txStateCacheSupplier.release(); }
@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(); } }