本文整理汇总了Java中org.apache.hadoop.hbase.thrift.generated.AlreadyExists类的典型用法代码示例。如果您正苦于以下问题:Java AlreadyExists类的具体用法?Java AlreadyExists怎么用?Java AlreadyExists使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AlreadyExists类属于org.apache.hadoop.hbase.thrift.generated包,在下文中一共展示了AlreadyExists类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import org.apache.hadoop.hbase.thrift.generated.AlreadyExists; //导入依赖的package包/类
public static void main(String[] args)
throws IOError, TException, UnsupportedEncodingException, IllegalArgument, AlreadyExists {
if (args.length != 2) {
System.out.println("Invalid arguments!");
System.out.println("Usage: DemoClient host port");
System.exit(-1);
}
port = Integer.parseInt(args[1]);
host = args[0];
DemoClient client = new DemoClient();
client.run();
}
示例2: main
import org.apache.hadoop.hbase.thrift.generated.AlreadyExists; //导入依赖的package包/类
public static void main(String[] args)
throws IOError, TException, UnsupportedEncodingException, IllegalArgument, AlreadyExists {
if (args.length != 2) {
System.out.println("Invalid arguments!");
System.out.println("Usage: DemoClient host port");
System.exit(-1);
}
port = Integer.parseInt(args[1]);
host = args[0];
DemoClient client = new DemoClient();
client.run();
}
示例3: handleException
import org.apache.hadoop.hbase.thrift.generated.AlreadyExists; //导入依赖的package包/类
protected void handleException(AlreadyExists e) throws AlreadyExists {
throw e;
}