mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
update
This commit is contained in:
parent
6db678cb05
commit
2aee87fe3a
@ -88,12 +88,14 @@ public class OpenSearchSpace implements AutoCloseable {
|
|||||||
|
|
||||||
OpenSearchClient client = new OpenSearchClient(awsSdk2Transport);
|
OpenSearchClient client = new OpenSearchClient(awsSdk2Transport);
|
||||||
|
|
||||||
|
if (cfg.get("getinfo").equals("true")) {
|
||||||
try {
|
try {
|
||||||
InfoResponse info = client.info();
|
InfoResponse info = client.info();
|
||||||
System.out.println(info.version().distribution() + ": " + info.version().number());
|
System.out.println(info.version().distribution() + ": " + info.version().number());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
@ -104,6 +106,8 @@ public class OpenSearchSpace implements AutoCloseable {
|
|||||||
.add(Param.required("host", String.class).setDescription("The Open Search API endpoint host"))
|
.add(Param.required("host", String.class).setDescription("The Open Search API endpoint host"))
|
||||||
.add(Param.optional("profile")
|
.add(Param.optional("profile")
|
||||||
.setDescription("The AWS auth profile to use. Required to activate profile based auth"))
|
.setDescription("The AWS auth profile to use. Required to activate profile based auth"))
|
||||||
|
.add(Param.defaultTo("getinfo", "false").setDescription("whether to call info after connect or " +
|
||||||
|
"not, true|false"))
|
||||||
.add(Param.defaultTo("svctype", "es")
|
.add(Param.defaultTo("svctype", "es")
|
||||||
.setDescription("one of es or aoss, defaults to es for OpenSearch domains"))
|
.setDescription("one of es or aoss, defaults to es for OpenSearch domains"))
|
||||||
.add(Param.defaultTo("diag", "false")
|
.add(Param.defaultTo("diag", "false")
|
||||||
|
Loading…
Reference in New Issue
Block a user