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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java