public interface ClusterApi
Modifier and Type | Method and Description |
---|---|
InvokableBuilder<Command> |
add_nodes(String labelOrId,
int node_count)
Corresponds to http://docs.qubole.com/en/latest/rest-api/cluster_api/add-node.html
|
InvokableBuilder<ClusterItem> |
clone(String labelOrId,
ClusterConfigBuilder configBuilder)
Corresponds to cloning cluster under http://docs.qubole.com/en/latest/rest-api/cluster_api/clone-cluster.html
|
ClusterConfigBuilder |
clusterConfig()
Return a new cluster config builder.
|
InvokableBuilder<Cluster> |
create(ClusterConfigBuilder configBuilder)
Corresponds to http://www.qubole.com/docs/create-new-cluster/
|
InvokableBuilder<ClusterItem> |
delete(String labelOrId)
Corresponds to http://www.qubole.com/docs/delete-cluster/
|
InvokableBuilder<ClusterItem> |
edit(String labelOrId,
ClusterConfigBuilder configBuilder)
Corresponds to http://www.qubole.com/docs/edit-cluster/
|
InvokableBuilder<ClusterItem> |
information(String labelOrId)
Corresponds to http://www.qubole.com/docs/get-cluster-information/
|
InvokableBuilder<List<ClusterItem>> |
list()
Corresponds to http://www.qubole.com/docs/list-clusters/
|
InvokableBuilder<ClusterMetrics> |
metrics(String labelOrId,
String metrics,
String hostname,
String interval)
Corresponds to http://docs.qubole.com/en/latest/rest-api/cluster_api/metrics-cluster.html
|
InvokableBuilder<Command> |
remove_node(String labelOrId,
String private_dns)
Corresponds to http://docs.qubole.com/en/latest/rest-api/cluster_api/remove-node.html
|
InvokableBuilder<Command> |
replace_node(String labelOrId,
String private_dns)
Corresponds to http://docs.qubole.com/en/latest/rest-api/cluster_api/replace-node.html
|
InvokableBuilder<Message> |
start(String labelOrId)
Corresponds to http://www.qubole.com/docs/start-terminate-cluster/ for "start"
|
InvokableBuilder<ClusterState> |
state(String labelOrId)
Corresponds to http://www.qubole.com/docs/get-cluster-state/
|
InvokableBuilder<Message> |
terminate(String labelOrId)
Corresponds to http://www.qubole.com/docs/start-terminate-cluster/ for "terminate"
|
InvokableBuilder<List<ClusterItem>> list()
InvokableBuilder<ClusterState> state(String labelOrId)
labelOrId
- the Cluster label/idInvokableBuilder<ClusterMetrics> metrics(String labelOrId, String metrics, String hostname, String interval)
labelOrId
- the Cluster label/idmetrics
- metric to monitor.hostname
- hostname for which metric values are required.interval
- interval for which the metric values are required.InvokableBuilder<ClusterItem> information(String labelOrId)
labelOrId
- the Cluster label/idInvokableBuilder<Message> start(String labelOrId)
labelOrId
- the Cluster label/idInvokableBuilder<Message> terminate(String labelOrId)
labelOrId
- the Cluster label/idInvokableBuilder<ClusterItem> edit(String labelOrId, ClusterConfigBuilder configBuilder)
labelOrId
- the Cluster label/idconfigBuilder
- config values - use clusterConfig()
InvokableBuilder<Cluster> create(ClusterConfigBuilder configBuilder)
configBuilder
- config values - use clusterConfig()
InvokableBuilder<ClusterItem> delete(String labelOrId)
labelOrId
- the Cluster label/idInvokableBuilder<Command> add_nodes(String labelOrId, int node_count)
labelOrId
- the Cluster label/idnode_count
- the number of nodes to addInvokableBuilder<Command> replace_node(String labelOrId, String private_dns)
labelOrId
- the Cluster label/idprivate_dns
- the dns of slave to replaceInvokableBuilder<Command> remove_node(String labelOrId, String private_dns)
labelOrId
- the Cluster label/idprivate_dns
- the dns of slave to removeInvokableBuilder<ClusterItem> clone(String labelOrId, ClusterConfigBuilder configBuilder)
labelOrId
- the Cluster label/idconfigBuilder
- config values - use clusterConfig()
ClusterConfigBuilder clusterConfig()
edit(String, ClusterConfigBuilder)
Copyright © 2020. All rights reserved.