Class AbstractAwsIotDevice
- java.lang.Object
-
- com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice
-
- Direct Known Subclasses:
AWSIotDevice
public abstract class AbstractAwsIotDevice extends Object
The actual implementation ofAWSIotDevice.
-
-
Field Summary
Fields Modifier and Type Field Description protected AWSIotQosdeviceReportQosprotected booleanenableVersioningprotected AWSIotQosmethodAckQosprotected AWSIotQosmethodQosprotected longreportIntervalprotected AWSIotQosshadowUpdateQosprotected StringthingName
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAwsIotDevice(String thingName)
-
Method Summary
-
-
-
Field Detail
-
thingName
protected final String thingName
-
reportInterval
protected long reportInterval
-
enableVersioning
protected boolean enableVersioning
-
deviceReportQos
protected AWSIotQos deviceReportQos
-
shadowUpdateQos
protected AWSIotQos shadowUpdateQos
-
methodQos
protected AWSIotQos methodQos
-
methodAckQos
protected AWSIotQos methodAckQos
-
-
Constructor Detail
-
AbstractAwsIotDevice
protected AbstractAwsIotDevice(String thingName)
-
-
Method Detail
-
getDevice
protected AbstractAwsIotDevice getDevice()
-
get
protected String get() throws AWSIotException
- Throws:
AWSIotException
-
get
protected String get(long timeout) throws AWSIotException, AWSIotTimeoutException
-
get
protected void get(AWSIotMessage message, long timeout) throws AWSIotException
- Throws:
AWSIotException
-
update
protected void update(String jsonState) throws AWSIotException
- Throws:
AWSIotException
-
update
protected void update(String jsonState, long timeout) throws AWSIotException, AWSIotTimeoutException
-
update
protected void update(AWSIotMessage message, long timeout) throws AWSIotException
- Throws:
AWSIotException
-
delete
protected void delete() throws AWSIotException- Throws:
AWSIotException
-
delete
protected void delete(long timeout) throws AWSIotException, AWSIotTimeoutException
-
delete
protected void delete(AWSIotMessage message, long timeout) throws AWSIotException
- Throws:
AWSIotException
-
onShadowUpdate
protected void onShadowUpdate(String jsonState)
-
onDeviceReport
protected String onDeviceReport()
-
activate
public void activate() throws AWSIotException- Throws:
AWSIotException
-
deactivate
public void deactivate() throws AWSIotException- Throws:
AWSIotException
-
isTopicReady
public boolean isTopicReady(String topic)
-
isCommandReady
public boolean isCommandReady(AwsIotDeviceCommandManager.Command command)
-
onSubscriptionAck
public void onSubscriptionAck(String topic, boolean success)
-
onCommandAck
public void onCommandAck(AWSIotMessage message)
-
startSync
protected void startSync()
-
stopSync
protected void stopSync()
-
startVersionSync
protected void startVersionSync()
-
getThingName
public String getThingName()
-
getReportInterval
public long getReportInterval()
-
isEnableVersioning
public boolean isEnableVersioning()
-
getDeviceReportQos
public AWSIotQos getDeviceReportQos()
-
getShadowUpdateQos
public AWSIotQos getShadowUpdateQos()
-
getMethodQos
public AWSIotQos getMethodQos()
-
getMethodAckQos
public AWSIotQos getMethodAckQos()
-
getCommandManager
public AwsIotDeviceCommandManager getCommandManager()
-
getDeviceSubscriptions
public ConcurrentMap<String,Boolean> getDeviceSubscriptions()
-
getJsonObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getJsonObjectMapper()
-
getClient
public AbstractAwsIotClient getClient()
-
getSyncTask
public Future<?> getSyncTask()
-
getLocalVersion
public AtomicLong getLocalVersion()
-
setReportInterval
public void setReportInterval(long reportInterval)
-
setEnableVersioning
public void setEnableVersioning(boolean enableVersioning)
-
setDeviceReportQos
public void setDeviceReportQos(AWSIotQos deviceReportQos)
-
setShadowUpdateQos
public void setShadowUpdateQos(AWSIotQos shadowUpdateQos)
-
setMethodQos
public void setMethodQos(AWSIotQos methodQos)
-
setMethodAckQos
public void setMethodAckQos(AWSIotQos methodAckQos)
-
setClient
public void setClient(AbstractAwsIotClient client)
-
setSyncTask
public void setSyncTask(Future<?> syncTask)
-
setLocalVersion
public void setLocalVersion(AtomicLong localVersion)
-
-