public class BmrClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
BmrClient()
Constructs a new client to invoke service methods on BMR.
|
BmrClient(BceClientConfiguration clientConfiguration)
Constructs a new BMR client using the client configuration to access BMR.
|
| Modifier and Type | Method and Description |
|---|---|
AddStepsResponse |
addSteps(AddStepsRequest request)
Add steps to a BMR cluster.
|
void |
cancelSteps(GetStepRequest request) |
CreateClusterResponse |
createCluster(CreateClusterRequest request)
Create a cluster with the specified options.
|
GetClusterResponse |
getCluster(GetClusterRequest request)
Describe the detail information of the target cluster.
|
GetClusterResponse |
getCluster(String clusterId)
Describe the detail information of the target cluster.
|
AmbariResponse |
getClusterAmbariPassword(String clusterId)
Describe the Ambari Password information of the target cluster.
|
GetStepResponse |
getStep(GetStepRequest request)
Describe the detail information of the target step.
|
GetStepResponse |
getStep(String clusterId,
String stepId)
Describe the detail information of the target step.
|
ListClusterHostsResponse |
listClusterHosts(String clusterId)
List host info for a cluster
|
ListClustersResponse |
listClusters()
List BMR clusters owned by the authenticated user.
|
ListClustersResponse |
listClusters(int maxKeys)
List BMR clusters owned by the authenticated user.
|
ListClustersResponse |
listClusters(ListClustersRequest request)
List BMR clusters owned by the authenticated user.
|
ListClustersResponse |
listClusters(String marker,
int maxKeys)
List BMR clusters owned by the authenticated user.
|
ListInstanceGroupsResponse |
listInstanceGroups(ListInstanceGroupsRequest request)
List the instance groups of the target BMR cluster.
|
ListInstanceGroupsResponse |
listInstanceGroups(String clusterId)
List the instance groups of the target BMR cluster.
|
ListInstancesResponse |
listInstances(ListInstancesRequest request)
List the instances belonging to the target instance group in the BMR cluster.
|
ListInstancesResponse |
listInstances(String clusterId,
String instanceGroupId)
List the instances belonging to the target instance in the BMR cluster.
|
ListStepsResponse |
listSteps(ListStepsRequest request)
List all the steps of the target BMR cluster.
|
void |
modifyInstanceGroups(ModifyInstanceGroupsRequest request)
Modify the instance groups of the target cluster.
|
NormalResponse |
renameCluster(RenameCluseterRequest request)
rename a cluster's name
|
void |
terminateCluster(String clusterId)
Terminate a BMR cluster and release all the virtual machine instances.
|
void |
terminateCluster(TerminateClusterRequest request)
Terminate a BMR cluster and release all the virtual machine instances.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic BmrClient()
public BmrClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The BCE client configuration options.public ListClustersResponse listClusters(ListClustersRequest request)
request - The request containing valid query parameters.public ListClustersResponse listClusters()
public ListClustersResponse listClusters(int maxKeys)
maxKeys - The maximum number of clusters returned.public ListClustersResponse listClusters(String marker, int maxKeys)
marker - The start record of clusters.maxKeys - The maximum number of clusters returned.public GetClusterResponse getCluster(GetClusterRequest request)
request - The request object containing the ID of the target cluster.public AmbariResponse getClusterAmbariPassword(String clusterId)
clusterId - ID of the target cluster.public GetClusterResponse getCluster(String clusterId)
clusterId - The ID of the target cluster.public CreateClusterResponse createCluster(CreateClusterRequest request)
request - The request containing all options for creating a BMR cluster.public void modifyInstanceGroups(ModifyInstanceGroupsRequest request)
request - The request containing the ID of BMR cluster and the instance groups to be modified.public void terminateCluster(TerminateClusterRequest request)
request - The request containing the ID of the cluster to be terminated.public void terminateCluster(String clusterId)
clusterId - The ID of the cluster to be terminated.public ListInstanceGroupsResponse listInstanceGroups(ListInstanceGroupsRequest request)
request - containing the ID of target BMR cluster.public ListInstanceGroupsResponse listInstanceGroups(String clusterId)
clusterId - the ID of target BMR cluster.public ListInstancesResponse listInstances(ListInstancesRequest request)
request - containing the ID of target BMR cluster and the ID of the instance group.public ListInstancesResponse listInstances(String clusterId, String instanceGroupId)
clusterId - the ID of target BMR cluster.instanceGroupId - the ID of target instance group.public AddStepsResponse addSteps(AddStepsRequest request)
request - containing the ID of target BMR cluster and several steps to be added.public void cancelSteps(GetStepRequest request)
public ListStepsResponse listSteps(ListStepsRequest request)
request - The request containing the ID of target BMR cluster.public GetStepResponse getStep(GetStepRequest request)
The request is valid just if the step exists and the step is owned by the cluster
request - The request containing the ID of BMR cluster and the ID of step.public GetStepResponse getStep(String clusterId, String stepId)
clusterId - The ID of the cluster which owns the step.stepId - The ID of the target step.public NormalResponse renameCluster(RenameCluseterRequest request)
request - contains cluster's ID and cluster's new namepublic ListClusterHostsResponse listClusterHosts(String clusterId)
clusterId - cluster uuidCopyright © 2024. All rights reserved.