Job Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. devicetwin. Job
- com.
public class Job
Representation of a single Job scheduled on the Iothub.
Method Summary
Modifier and Type | Method and Description |
---|---|
Job |
cancel()
Cancel a current jod on the Io |
Job |
get()
Get the current job status on the iot |
java.lang.String |
getJobId()
Getter for the Job |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Method Details
cancel
public JobResult cancel()
Cancel a current jod on the IoTHub
Returns:
a jobResult object with the current job status.
Throws:
java.io.IOException
- if the function failed to cancel the job with the current job information
IotHubException
- if the function failed to cancel the job with the current job information
get
public JobResult get()
Get the current job status on the iotHub.
Returns:
a jobResult object with the current job status.
Throws:
java.io.IOException
- if the function failed to get the status with the current job information
IotHubException
- if the function failed to get the status with the current job information
getJobId
public String getJobId()
Getter for the JobId.
Returns:
the current jobId.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for Java