类 BatchClient


  • public class BatchClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Batch-Compute service.
    • 构造器详细资料

      • 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.