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 |
|---|---|
void |
addEip(EipRequest request)
add an EIP of the master node of a cluster
|
AddStepsResponse |
addSteps(AddStepsRequest request)
Add steps to a BMR cluster.
|
void |
bindEip(EipBindRequest request)
bind EIP for the bmr instance of a cluster
|
void |
cancelSteps(GetStepRequest request) |
CreateClusterResponse |
createCluster(CreateClusterRequest request)
Create a cluster with the specified options.
|
CreateClusterResponse |
createclusterByTemplate(CreateClusterByTemplateRequest request)
create a cluster by a template
|
ScheduleCreateResponse |
createSchedulePlan(CreateSchedulePlanRequest request)
create a scheduleplan
|
CreateTemplateResponse |
createTemplate(CreateTemplateRequest request)
create a Template
|
void |
deleteEip(EipRequest request)
Delete the master of a cluster 's EIP
|
ScheduleResultResponse |
deleteSchedulePlan(SchedulePlanRequest request)
delete scheduleplan id
|
NormalResponse |
deleteTemplate(TemplateIdRequest request)
delete template by id
|
CluseterDetailInfoResponse |
getCluseterDetail(GetClusterRequest request)
get a cluster's detail
|
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.
|
SchedulePlanDetailResponse |
getSchedulePlanDetail(SchedulePlanRequest request)
get a schedulePlan's detail
|
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.
|
TemplateInfoResponse |
getTemplateInfo(TemplateIdRequest request)
get the TemplateInfo
|
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.
|
ListHistorySchedulePlanResponse |
listHistory(SchedulePlanRequest request)
list history steps of a shcduleplan
|
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.
|
SchedulePlanDetailListResponse |
listSchedulePlanDetail(ListScheduleDetailRequest request)
list the detail of a schedulePlan
|
ListStepsResponse |
listSteps(ListStepsRequest request)
List all the steps of the target BMR cluster.
|
ListStepsResponse |
listSteps(String clusterId)
List all the steps of the target BMR cluster.
|
ListStepsResponse |
listSteps(String clusterId,
int maxKeys)
List all the steps of the target BMR cluster.
|
ListStepsResponse |
listSteps(String clusterId,
String marker,
int maxKeys)
List all the steps of the target BMR cluster.
|
TemplateListResponse |
listTemplate(TemplateListRequest request)
list all of template of an user
|
void |
modifyInstanceGroups(ModifyInstanceGroupsRequest request)
Modify the instance groups of the target cluster.
|
NormalResponse |
renameCluster(RenameCluseterRequest request)
rename a cluster's name
|
TemplateClusterResponse |
saveTemplateByCluster(TemplateClusterRequest request)
save a template by clusterID
|
ScheduleResultResponse |
startSchedulePlan(SchedulePlanRequest request)
start a scheduleplan
|
ScheduleResultResponse |
stopSchedulePlan(SchedulePlanRequest request)
stip scheduleplan
|
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.
|
void |
unBindEip(EipUnBindRequest request)
unbind EIP for the bmr instance of a cluster
|
ScheduleResultResponse |
updateSchedulePlan(UpdateSchedulePlanRequest request)
update a schedulePlan
|
computeServiceId, 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 TemplateClusterResponse saveTemplateByCluster(TemplateClusterRequest request)
request - The request object containing the ID of the target clusterpublic 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 CreateTemplateResponse createTemplate(CreateTemplateRequest request)
request - the request contains all of a cluster's configpublic CluseterDetailInfoResponse getCluseterDetail(GetClusterRequest request)
request - a cluster's idpublic CreateClusterResponse createclusterByTemplate(CreateClusterByTemplateRequest request)
request - a template,a loguril,an adminPasswodpublic 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 ListStepsResponse listSteps(String clusterId)
clusterId - The ID of the target BMR cluster.public ListStepsResponse listSteps(String clusterId, int maxKeys)
clusterId - The ID of the target BMR cluster.maxKeys - The maximum number of steps returned.public ListStepsResponse listSteps(String clusterId, String marker, int maxKeys)
clusterId - The ID of the target BMR cluster.marker - The start record of steps.maxKeys - The maximum number of steps returned.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 void deleteEip(EipRequest request)
request - the cluster's IDpublic NormalResponse renameCluster(RenameCluseterRequest request)
request - contains cluster's ID and cluster's new namepublic void addEip(EipRequest request)
request - contains instanceID and clusterIDpublic TemplateInfoResponse getTemplateInfo(TemplateIdRequest request)
request - contains the templateID and adminPasswordpublic NormalResponse deleteTemplate(TemplateIdRequest request)
request - contains templateid and adminPasswordpublic TemplateListResponse listTemplate(TemplateListRequest request)
request - contains the usernamepublic ScheduleCreateResponse createSchedulePlan(CreateSchedulePlanRequest request)
request - contains templateId ,steps,period,timeUnitpublic ScheduleResultResponse updateSchedulePlan(UpdateSchedulePlanRequest request)
request - contains scheduleplanId ,steps config,schedule messagepublic ScheduleResultResponse deleteSchedulePlan(SchedulePlanRequest request)
request - contains schedulePlanIdpublic ScheduleResultResponse stopSchedulePlan(SchedulePlanRequest request)
request - contains scheduleplan idpublic ScheduleResultResponse startSchedulePlan(SchedulePlanRequest request)
request - scheduleplan's idpublic SchedulePlanDetailResponse getSchedulePlanDetail(SchedulePlanRequest request)
request - contains schedulePlanIdpublic SchedulePlanDetailListResponse listSchedulePlanDetail(ListScheduleDetailRequest request)
request - contains nothingpublic ListHistorySchedulePlanResponse listHistory(SchedulePlanRequest request)
request - contains shcadulePlanIdpublic void bindEip(EipBindRequest request)
request - bind requestpublic void unBindEip(EipUnBindRequest request)
request - unbind requestpublic ListClusterHostsResponse listClusterHosts(String clusterId)
clusterId - cluster uuidCopyright © 2020. All rights reserved.