|
||||||||||
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 | |
---|---|
AddStepsResponse |
addSteps(AddStepsRequest request)
Add steps to a BMR cluster. |
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. |
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. |
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. |
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. |
void |
modifyInstanceGroups(ModifyInstanceGroupsRequest request)
Modify the instance groups of the target cluster. |
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. |
Methods inherited from class com.baidubce.AbstractBceClient |
---|
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)
Users must authenticate with a valid BCE Access Key ID, and the response contains all the BMR clusters owned by the user.
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 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 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |