public class LLRPOperationTracker
extends java.util.TimerTask
implements java.io.Serializable
Constructor and Description |
---|
LLRPOperationTracker(LLRPReaderSession llrpReaderSession) |
Modifier and Type | Method and Description |
---|---|
void |
addOperationDto(LLRPOperationDto llrpOperationDto) |
boolean |
areAllResultsReceived()
Checks if all results are received
|
boolean |
areAllResultsSuccessful()
Checks if all results are received and are success
|
LLRPEncodeMessageDto |
checkOperationStatus() |
org.eclipse.paho.client.mqttv3.MqttClient |
getMqttClient() |
LLRPOperationDto |
getOperationByOpSpecId(org.llrp.ltk.types.UnsignedShort opSpecId) |
java.util.List<LLRPOperationDto> |
getOperationList() |
void |
initializeMqttParameters() |
void |
postMqttMessage(java.lang.String mqttTopic,
java.lang.Object messageContent) |
void |
run() |
void |
setMqttClient(org.eclipse.paho.client.mqttv3.MqttClient mqttClient) |
void |
setOperationList(java.util.List<LLRPOperationDto> operationList) |
void |
setResult(org.llrp.ltk.generated.interfaces.AccessCommandOpSpecResult result)
Set the result received
|
public LLRPOperationTracker(LLRPReaderSession llrpReaderSession)
public org.eclipse.paho.client.mqttv3.MqttClient getMqttClient()
public void setMqttClient(org.eclipse.paho.client.mqttv3.MqttClient mqttClient)
mqttClient
- the mqttClient to setpublic void addOperationDto(LLRPOperationDto llrpOperationDto)
public java.util.List<LLRPOperationDto> getOperationList()
public void setOperationList(java.util.List<LLRPOperationDto> operationList)
operationList
- the operationList to setpublic LLRPOperationDto getOperationByOpSpecId(org.llrp.ltk.types.UnsignedShort opSpecId)
public void setResult(org.llrp.ltk.generated.interfaces.AccessCommandOpSpecResult result)
result
- the received result of operationpublic boolean areAllResultsReceived()
public boolean areAllResultsSuccessful()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public LLRPEncodeMessageDto checkOperationStatus()
public void postMqttMessage(java.lang.String mqttTopic, java.lang.Object messageContent)
public void initializeMqttParameters()