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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java