本文整理了Java中org.elasticsearch.hadoop.cli.Keytool.execute()
方法的一些代码示例,展示了Keytool.execute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Keytool.execute()
方法的具体详情如下:
包路径:org.elasticsearch.hadoop.cli.Keytool
类名称:Keytool
方法名:execute
暂无
代码示例来源:origin: elastic/elasticsearch-hadoop
public static void main(String[] args) {
System.exit(execute(new ConsolePrompt(), args));
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeNoCommandWithArgs() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"--stdin"}), equalTo(1));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeAddFailUnknownArgument() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"add", "--stdin", "property.name", "someOtherTHing"}), equalTo(3));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeAdd() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"add", "--stdin", "property.name", "someOtherTHing"}), equalTo(3));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeNoCommand() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{}), equalTo(1));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeHelpExt() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"--help"}), equalTo(0));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeAddFailNoArgument() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"add"}), equalTo(4));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeListFailUnknownArgument() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"list", "property.name"}), equalTo(3));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeHelp() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"-h"}), equalTo(0));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeCommandFail() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"blah"}), equalTo(2));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeCommandFailWithHelp() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"blah", "--help"}), equalTo(2));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: elastic/elasticsearch-hadoop
@Test
public void executeAddFailNoSettingsName() {
TestPrompt console = new TestPrompt();
assertThat(Keytool.execute(console, new String[]{"add", "--stdin"}), equalTo(4));
assertHelpMessage(console.getOutput());
}
代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop-mr
public static void main(String[] args) {
System.exit(execute(new ConsolePrompt(), args));
}
代码示例来源:origin: org.elasticsearch/elasticsearch-spark-13
public static void main(String[] args) {
System.exit(execute(new ConsolePrompt(), args));
}
代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop
public static void main(String[] args) {
System.exit(execute(new ConsolePrompt(), args));
}
内容来源于网络,如有侵权,请联系作者删除!