|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.batch.BatchClient
public class BatchClient
Provides the client for accessing the Baidu Batch-Compute service.
Field Summary |
---|
Fields inherited from class com.baidubce.AbstractBceClient |
---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
Constructor Summary | |
---|---|
BatchClient()
Constructs a new client to invoke service methods on Batch-Compute. |
|
BatchClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration to access Batch-Compute. |
Method Summary | |
---|---|
void |
cancelJob(CancelJobRequest request)
Cancel a Batch-Compute job. |
void |
cancelJob(String jobId)
Cancel a Batch-Compute job. |
CreateJobResponse |
createJob(CreateJobRequest request)
Create a Batch-Compute job with the specified options. |
GetJobResponse |
getJob(GetJobRequest request)
Describe the detail information of the target job. |
GetJobResponse |
getJob(String jobId)
Describe the detail information of the target job. |
ListJobsResponse |
listJobs()
List Batch-Compute jobs owned by the authenticated user. |
ListJobsResponse |
listJobs(int maxKeys)
List Batch-Compute jobs owned by the authenticated user. |
ListJobsResponse |
listJobs(ListJobsRequest request)
List Batch-Compute jobs owned by the authenticated user. |
ListJobsResponse |
listJobs(String marker,
int maxKeys)
List Batch-Compute jobs owned by the authenticated user. |
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 BatchClient()
public BatchClient(BceClientConfiguration clientConfiguration)
clientConfiguration
- The BCE client configuration options.Method Detail |
---|
public ListJobsResponse listJobs(ListJobsRequest request)
Users must authenticate with a valid BCE Access Key ID, and the response contains all the Batch-Compute jobs owned by the user.
request
- The request containing valid query parameters.
public ListJobsResponse listJobs()
public ListJobsResponse listJobs(int maxKeys)
maxKeys
- The maximum number of jobs returned.
public ListJobsResponse listJobs(String marker, int maxKeys)
marker
- The start record of jobs.maxKeys
- The maximum number of jobs returned.
public GetJobResponse getJob(GetJobRequest request)
request
- The request object containing the ID of the target job.
public GetJobResponse getJob(String jobId)
jobId
- The ID of the target job.
public CreateJobResponse createJob(CreateJobRequest request)
request
- The request containing all options for creating a Batch-Compute job.
public void cancelJob(CancelJobRequest request)
request
- The request containing the ID of the job to be cancelled.public void cancelJob(String jobId)
jobId
- The ID of the job to be cancelled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |