Package com.azure.quantum.jobs
Class JobsClient
java.lang.Object
com.azure.quantum.jobs.JobsClient
Initializes a new instance of the synchronous QuantumClient type.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel a job.create
(String jobId, JobDetails job) Create a job.Get job by id.list()
List jobs.
-
Method Details
-
list
List jobs.- Returns:
- list of job details.
- Throws:
HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get job by id.- Parameters:
jobId
- Id of the job.- Returns:
- job by id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
Create a job.- Parameters:
jobId
- Id of the job.job
- The complete metadata of the job to submit.- Returns:
- job details.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
cancel
Cancel a job.- Parameters:
jobId
- Id of the job.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.RestErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-