本文整理汇总了Java中org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation类的典型用法代码示例。如果您正苦于以下问题:Java Operation类的具体用法?Java Operation怎么用?Java Operation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Operation类属于org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider包,在下文中一共展示了Operation类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCommand
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public String getCommand(ServiceType service, Operation op) {
return String.format("%s/bin/hbase-daemon.sh %s %s %s", hbaseHome, confDir,
op.toString().toLowerCase(), service);
}
示例2: exec
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
private void exec(String hostname, ServiceType service, Operation op) throws IOException {
execWithRetries(hostname, service, getCommandProvider(service).getCommand(service, op));
}
示例3: start
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void start(ServiceType service, String hostname, int port) throws IOException {
exec(hostname, service, Operation.START);
}
示例4: stop
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void stop(ServiceType service, String hostname, int port) throws IOException {
exec(hostname, service, Operation.STOP);
}
示例5: restart
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void restart(ServiceType service, String hostname, int port) throws IOException {
exec(hostname, service, Operation.RESTART);
}
示例6: getCommand
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public String getCommand(ServiceType service, Operation op) {
return String.format("%s/bin/hbase-daemon.sh %s %s %s", getHBaseHome(), getConfig(),
op.toString().toLowerCase(), service);
}
示例7: exec
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
private void exec(String hostname, ServiceType service, Operation op) throws IOException {
exec(hostname, getCommandProvider(service).getCommand(service, op));
}
示例8: start
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void start(ServiceType service, String hostname) throws IOException {
exec(hostname, service, Operation.START);
}
示例9: stop
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void stop(ServiceType service, String hostname) throws IOException {
exec(hostname, service, Operation.STOP);
}
示例10: restart
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public void restart(ServiceType service, String hostname) throws IOException {
exec(hostname, service, Operation.RESTART);
}
示例11: exec
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
private void exec(String hostname, ServiceType service, Operation op) throws IOException {
execWithRetries(hostname, getCommandProvider(service).getCommand(service, op));
}
示例12: getCommand
import org.apache.hadoop.hbase.HBaseClusterManager.CommandProvider.Operation; //导入依赖的package包/类
@Override
public String getCommand(ServiceType service, Operation op) {
return String.format("%s/bin/hbase-daemon.sh %s %s %s", hbaseHome, confDir,
op.toString().toLowerCase(Locale.ROOT), service);
}