ProvisioningTask Class

  • java.lang.Object
    • java.util.concurrent.Callable<Object>
      • com.microsoft.azure.sdk.iot.provisioning.device.internal.task.ProvisioningTask

public class ProvisioningTask

Constructor Summary

Constructor Description
ProvisioningTask(ProvisioningDeviceClientConfig provisioningDeviceClientConfig, ProvisioningDeviceClientContract provisioningDeviceClientContract)

Constructor for creating a provisioning task

Method Summary

Modifier and Type Method and Description
Object call()

This method executes the State machine with the device goes through during registration.

Constructor Details

ProvisioningTask

public ProvisioningTask(ProvisioningDeviceClientConfig provisioningDeviceClientConfig, ProvisioningDeviceClientContract provisioningDeviceClientContract)

Constructor for creating a provisioning task

Parameters:

provisioningDeviceClientConfig - Config that contains details pertaining to Service
provisioningDeviceClientContract - Contract with the service over the specified protocol

Throws:

ProvisioningDeviceClientException - If any of the input parameters are invalid then this exception is thrown

Method Details

call

public Object call()

This method executes the State machine with the device goes through during registration.

Returns:

Returnsnull 

</code></p>

Throws:

Exception - This exception is thrown if any of the exception during execution is not handled.

Applies to