|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.bmr.BmrClient
public class BmrClient
Provides the client for accessing the Baidu MapReduce service.
| Field Summary |
|---|
| Fields inherited from class com.baidubce.AbstractBceClient |
|---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.baidubce.AbstractBceClient |
|---|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BmrClient()
public BmrClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The BCE client configuration options.| Method Detail |
|---|
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 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 CreateTemplateResponse createTemplate(CreateTemplateRequest request)
request - the request contains all of a cluster's config
public CluseterDetailInfoResponse getCluseterDetail(GetClusterRequest request)
request - a cluster's id
public CreateClusterResponse createclusterByTemplate(CreateClusterByTemplateRequest request)
request - a template,a loguril,an adminPasswod
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 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 name
public void addEip(EipRequest request)
request - contains instanceID and clusterIDpublic TemplateInfoResponse getTemplateInfo(TemplateIdRequest request)
request - contains the templateID and adminPassword
public NormalResponse deleteTemplate(TemplateIdRequest request)
request - contains templateid and adminPassword
public TemplateListResponse listTemplate(TemplateListRequest request)
request - contains the username
public ScheduleCreateResponse createSchedulePlan(CreateSchedulePlanRequest request)
request - contains templateId ,steps,period,timeUnit
public ScheduleResultResponse updateSchedulePlan(UpdateSchedulePlanRequest request)
request - contains scheduleplanId ,steps config,schedule message
public ScheduleResultResponse deleteSchedulePlan(SchedulePlanRequest request)
request - contains schedulePlanId
public ScheduleResultResponse stopSchedulePlan(SchedulePlanRequest request)
request - contains scheduleplan id
public ScheduleResultResponse startSchedulePlan(SchedulePlanRequest request)
request - scheduleplan's id
public SchedulePlanDetailResponse getSchedulePlanDetail(SchedulePlanRequest request)
request - contains schedulePlanId
public SchedulePlanDetailListResponse listSchedulePlanDetail(ListScheduleDetailRequest request)
request - contains nothing
public ListHistorySchedulePlanResponse listHistory(SchedulePlanRequest request)
request - contains shcadulePlanId
public void bindEip(EipBindRequest request)
request - bind requestpublic void unBindEip(EipUnBindRequest request)
request - unbind requestpublic ListClusterHostsResponse listClusterHosts(String clusterId)
clusterId - cluster uuid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||