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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java