类 BatchClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.batch.BatchClient
-
public class BatchClient extends AbstractBceClient
Provides the client for accessing the Baidu Batch-Compute service.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcancelJob(CancelJobRequest request)Cancel a Batch-Compute job.voidcancelJob(String jobId)Cancel a Batch-Compute job.CreateJobResponsecreateJob(CreateJobRequest request)Create a Batch-Compute job with the specified options.GetJobResponsegetJob(GetJobRequest request)Describe the detail information of the target job.GetJobResponsegetJob(String jobId)Describe the detail information of the target job.ListJobsResponselistJobs()List Batch-Compute jobs owned by the authenticated user.ListJobsResponselistJobs(int maxKeys)List Batch-Compute jobs owned by the authenticated user.ListJobsResponselistJobs(ListJobsRequest request)List Batch-Compute jobs owned by the authenticated user.ListJobsResponselistJobs(String marker, int maxKeys)List Batch-Compute jobs owned by the authenticated user.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
BatchClient
public BatchClient()
Constructs a new client to invoke service methods on Batch-Compute.
-
BatchClient
public BatchClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration to access Batch-Compute.- 参数:
clientConfiguration- The BCE client configuration options.
-
-
方法详细资料
-
listJobs
public ListJobsResponse listJobs(ListJobsRequest request)
List Batch-Compute jobs owned by the authenticated user.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.- 返回:
- The response containing a list of the Batch-Compute jobs owned by the authenticated sender of the request.
-
listJobs
public ListJobsResponse listJobs()
List Batch-Compute jobs owned by the authenticated user.- 返回:
- The response containing a list of the Batch-Compute jobs owned by the authenticated sender of the request.
-
listJobs
public ListJobsResponse listJobs(int maxKeys)
List Batch-Compute jobs owned by the authenticated user.- 参数:
maxKeys- The maximum number of jobs returned.- 返回:
- The response containing a list of the Batch-Compute jobs owned by the authenticated sender of the request. And the size of list is limited below maxKeys.
-
listJobs
public ListJobsResponse listJobs(String marker, int maxKeys)
List Batch-Compute jobs owned by the authenticated user.- 参数:
marker- The start record of jobs.maxKeys- The maximum number of jobs returned.- 返回:
- The response containing a list of the Batch-Compute jobs owned by the authenticated sender of the request. The jobs' records start from the marker and the size of list is limited below maxKeys.
-
getJob
public GetJobResponse getJob(GetJobRequest request)
Describe the detail information of the target job.- 参数:
request- The request object containing the ID of the target job.- 返回:
- response containing the detail information of the target job.
-
getJob
public GetJobResponse getJob(String jobId)
Describe the detail information of the target job.- 参数:
jobId- The ID of the target job.- 返回:
- The response containing the detail information of the target job.
-
createJob
public CreateJobResponse createJob(CreateJobRequest request)
Create a Batch-Compute job with the specified options.- 参数:
request- The request containing all options for creating a Batch-Compute job.- 返回:
- The response containing the ID of the newly created job.
-
cancelJob
public void cancelJob(CancelJobRequest request)
Cancel a Batch-Compute job.- 参数:
request- The request containing the ID of the job to be cancelled.
-
cancelJob
public void cancelJob(String jobId)
Cancel a Batch-Compute job.- 参数:
jobId- The ID of the job to be cancelled.
-
-