public class BatchClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic BatchClient()
public BatchClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The BCE client configuration options.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.Copyright © 2024. All rights reserved.