RegistrationStatusManager Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. RegistrationStatusManager
- com.
public class RegistrationStatusManager
Registration Status Manager
This is the inner class that implements the Registration Status APIs.
For the exposed API, please see ProvisioningServiceClient.
Method Summary
Modifier and Type | Method and Description |
---|---|
Query |
createEnrollmentGroupQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)
Create a new registration status query for enrollment |
static
Registration |
createFromContractApiHttp(ContractApiHttp contractApiHttp)
Create a new instance of the Registration |
void |
delete(DeviceRegistrationState DeviceRegistrationState)
Delete registration status. |
void |
delete(String id, String eTag)
Delete registration status. |
Device |
get(String id)
Get device registration status information. |
Methods inherited from java.lang.Object
Method Details
createEnrollmentGroupQuery
public Query createEnrollmentGroupQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)
Create a new registration status query for enrollmentGroup.
Parameters:
String
with the SQL query specification. It cannot be null
.
String
with the enrollmentGroupId of the enrollmentGroup to delete. It cannot be null
or empty.
int
with the maximum number of items per iteration. It can be 0 for default, but not negative.
Returns:
createFromContractApiHttp
public static RegistrationStatusManager createFromContractApiHttp(ContractApiHttp contractApiHttp)
Create a new instance of the RegistrationStatusManager using the provided connection string and https as the transport protocol.
Parameters:
Returns:
RegistrationStatusManager
with the new instance of this class.delete
public void delete(DeviceRegistrationState DeviceRegistrationState)
Delete registration status.
Parameters:
null
.
Throws:
delete
public void delete(String id, String eTag)
Delete registration status.
Parameters:
null
or empty.
null
or empty (ignored).
Throws:
get
public DeviceRegistrationState get(String id)
Get device registration status information.
Parameters:
String
that identifies the registration status. It cannot be null
or empty.
Returns:
Throws:
Applies to
Azure SDK for Java