本文整理匯總了Java中org.apache.hadoop.hbase.conf.ConfigurationManager類的典型用法代碼示例。如果您正苦於以下問題:Java ConfigurationManager類的具體用法?Java ConfigurationManager怎麽用?Java ConfigurationManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConfigurationManager類屬於org.apache.hadoop.hbase.conf包,在下文中一共展示了ConfigurationManager類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override public void registerChildren(ConfigurationManager manager) {
configurationManager = Optional.of(manager);
for (Store s : this.stores.values()) {
configurationManager.get().registerObserver(s);
}
}
示例2: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void registerChildren(ConfigurationManager manager) {
configurationManager = Optional.of(manager);
for (Store s : this.stores.values()) {
configurationManager.get().registerObserver(s);
}
}
示例3: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void deregisterChildren(ConfigurationManager manager) {
for (Store s : this.stores.values()) {
configurationManager.get().deregisterObserver(s);
}
}
示例4: setupWindows
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* If running on Windows, do windows-specific setup.
*/
private static void setupWindows(final Configuration conf, ConfigurationManager cm) {
if (!SystemUtils.IS_OS_WINDOWS) {
Signal.handle(new Signal("HUP"), new SignalHandler() {
@Override
public void handle(Signal signal) {
conf.reloadConfiguration();
cm.notifyAllObservers(conf);
}
});
}
}
示例5: getConfigurationManager
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* @return : Returns the ConfigurationManager object for testing purposes.
*/
protected ConfigurationManager getConfigurationManager() {
return configurationManager;
}
示例6: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void registerChildren(ConfigurationManager manager) {
// No children to register.
}
示例7: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void deregisterChildren(ConfigurationManager manager) {
// No children to register
}
示例8: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override public void deregisterChildren(ConfigurationManager manager) {
for (Store s : this.stores.values()) {
configurationManager.get().deregisterObserver(s);
}
}
示例9: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override public void registerChildren(ConfigurationManager manager) {
// No children to register
}
示例10: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override public void deregisterChildren(ConfigurationManager manager) {
// No children to deregister
}
示例11: getConfigurationManager
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* @return : Returns the ConfigurationManager object for testing purposes.
*/
protected ConfigurationManager getConfigurationManager() {
return configurationManager;
}
示例12: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void registerChildren(ConfigurationManager manager) {
// No children to register
}
示例13: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void deregisterChildren(ConfigurationManager manager) {
// No children to deregister
}
示例14: registerChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void registerChildren(ConfigurationManager manager) {
configurationManager = Optional.of(manager);
stores.values().forEach(manager::registerObserver);
}
示例15: deregisterChildren
import org.apache.hadoop.hbase.conf.ConfigurationManager; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void deregisterChildren(ConfigurationManager manager) {
stores.values().forEach(configurationManager.get()::deregisterObserver);
}