JobsParser 构造函数
定义
重载
JobsParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) |
CONSTRUCTOR |
JobsParser(String jobId, TwinParser updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) |
CONSTRUCTOR
|
JobsParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds) |
CONSTRUCTOR |
JobsParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
CONSTRUCTOR
public JobsParser(String jobId, MethodParser cloudToDeviceMethod, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
参数
- jobId
- String
is a string with the job identification. Cannot benull
</code> or empty. </p>
- cloudToDeviceMethod
- MethodParser
is the class that contains the json for the cloud to Device Method. Cannot benull
</code> . </p>
- queryCondition
- String
is a string with the deviceId or an IoT Hub Query Condition. Cannot benull
</code> or empty. </p>
- startTime
- Date
is the date and time to start the job. Cannot benull
</code> . </p>
- maxExecutionTimeInSeconds
- long
is the maximum time that the device can expend to execute the job. Cannot be negative
例外
if one of the parameter is not valid.
JobsParser(String jobId, TwinParser updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
CONSTRUCTOR
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>As of release 0.4.0, replaced by <xref uid="com.microsoft.azure.sdk.iot.deps.serializer.JobsParser.JobsParser(String,TwinState,String,Date,long)" data-throw-if-not-resolved="false" data-raw-source="JobsParser(String, TwinState, String, Date, long)"></xref></p>
</xrefdescription>
public JobsParser(String jobId, TwinParser updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
参数
- jobId
- String
is a string with the job identification. Cannot benull
</code> or empty. </p>
- updateTwin
- TwinParser
is the class that contains the json for the update twin properties. Cannot benull
</code> . </p>
- queryCondition
- String
is a string with the deviceId or an IoT Hub Query Condition. Cannot benull
</code> or empty. </p>
- startTime
- Date
is the date and time to start the job. Cannot benull
</code> . </p>
- maxExecutionTimeInSeconds
- long
is the maximum time that the device can expend to execute the job. Cannot be negative
例外
if one of the parameter is not valid.
JobsParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
CONSTRUCTOR
public JobsParser(String jobId, TwinState updateTwin, String queryCondition, Date startTime, long maxExecutionTimeInSeconds)
参数
- jobId
- String
is a string with the job identification. Cannot benull
</code> or empty. </p>
- updateTwin
- TwinState
is the class that contains the json for the update twin properties. Cannot benull
</code> . </p>
- queryCondition
- String
is a string with the deviceId or an IoT Hub Query Condition. Cannot benull
</code> or empty. </p>
- startTime
- Date
is the date and time to start the job. Cannot benull
</code> . </p>
- maxExecutionTimeInSeconds
- long
is the maximum time that the device can expend to execute the job. Cannot be negative
例外
if one of the parameter is not valid.