JobResult Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. jobs. JobResult
- com.
public class JobResult
Collection with the result of a job operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCloudToDeviceMethod()
Getter for cloud to device method json |
java.util.Date |
getCreatedTime()
Getter for create time |
java.lang.String |
getDeviceId()
Getter for the device Id |
java.util.Date |
getEndTime()
Getter for the end time UTC Represents the time the job stopped processing |
java.lang.String |
getError()
getter for the error |
java.lang.String |
getFailureReason()
Getter for failure reason |
java.lang.String |
getJobId()
Getter for the Job identifier |
Job |
getJobStatistics()
Getter for jobs statistics |
Job |
getJobStatus()
Getter for the jobs status |
Job |
getJobType()
Getter for the job type |
java.util.Date |
getLastUpdatedDateTime()
Getter for last updated time in UTC |
java.lang.Long |
getMaxExecutionTimeInSeconds()
Getter for max execution time in seconds |
java.lang.String |
getOutcome()
Deprecated
As of release 1.7.23, replaced by getOutcomeResult()
Outcome for the device method job |
Method |
getOutcomeResult()
Outcome for the device method job |
java.lang.String |
getParentJobId()
Getter for the parent job |
java.lang.String |
getQueryCondition()
Getter for query condition |
java.util.Date |
getStartTime()
Getter for start time UTC |
java.lang.String |
getStatusMessage()
Getter for the status message |
Device |
getUpdateTwin()
Getter for update twin json |
java.lang.String |
toString()
Return a string with a pretty print json with the content of this class |
Methods inherited from java.lang.Object
Method Details
getCloudToDeviceMethod
public String getCloudToDeviceMethod()
Getter for cloud to device method json
Returns:
null
if jobType
is not scheduleDeviceMethodgetCreatedTime
public Date getCreatedTime()
Getter for create time
Returns:
getDeviceId
public String getDeviceId()
Getter for the device Id
Returns:
null
(e.g. in case of a parent orchestration)getEndTime
public Date getEndTime()
Getter for the end time UTC Represents the time the job stopped processing
Returns:
getError
public String getError()
getter for the error
Returns:
getFailureReason
public String getFailureReason()
Getter for failure reason
Returns:
null
getJobId
public String getJobId()
Getter for the Job identifier
Returns:
getJobStatistics
public JobStatistics getJobStatistics()
Getter for jobs statistics
Returns:
getJobStatus
public JobStatus getJobStatus()
Getter for the jobs status
Returns:
getJobType
public JobType getJobType()
Getter for the job type
Returns:
getLastUpdatedDateTime
public Date getLastUpdatedDateTime()
Getter for last updated time in UTC
Returns:
getMaxExecutionTimeInSeconds
public Long getMaxExecutionTimeInSeconds()
Getter for max execution time in seconds
Returns:
getOutcome
public String getOutcome()
Deprecated
Outcome for the device method job
Returns:
getOutcomeResult
public MethodResult getOutcomeResult()
Outcome for the device method job
Returns:
getParentJobId
public String getParentJobId()
Getter for the parent jobId
Returns:
null
getQueryCondition
public String getQueryCondition()
Getter for query condition
Returns:
getStartTime
public Date getStartTime()
Getter for start time UTC
Returns:
getStatusMessage
public String getStatusMessage()
Getter for the status message
Returns:
null
getUpdateTwin
public DeviceTwinDevice getUpdateTwin()
Getter for update twin json
Returns:
null
if jobType
is not scheduleUpdateTwintoString
public String toString()
Return a string with a pretty print json with the content of this class
Overrides:
JobResult.toString()Returns:
Applies to
Azure SDK for Java