public class GenericSensorSession extends AbstractServerSocketSensorSession implements org.eclipse.paho.client.mqttv3.MqttCallback
Constructor and Description |
---|
GenericSensorSession(AbstractSensor<?> sensor,
java.lang.String ID,
NotifierService notifierService,
java.lang.String readerID,
int serverSocketPort,
java.lang.Boolean restdebug,
java.util.Set<AbstractCommandConfiguration<?>> commandConfigurations) |
Modifier and Type | Method and Description |
---|---|
void |
connectionLost(java.lang.Throwable arg0) |
void |
deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken arg0) |
void |
messageArrived(java.lang.String arg0,
org.eclipse.paho.client.mqttv3.MqttMessage arg1) |
java.util.Set<TagReadEvent> |
processTags(java.lang.String json) |
void |
sendTag(byte[] message)
Parses and sends the tag to the desired destination.
|
void |
sendTags(java.util.Set<TagReadEvent> tres)
Parses and sends the tag to the desired destination.
|
disconnect, killComand, restoreCommands, submit, submit, toString
getCommandInstance, getStatus, submit, submitAndBlock, suspendCommand
connect, getCommands, getDTO, getID, getSensor, getTimeout, handleTimeout, killAllCommands
public GenericSensorSession(AbstractSensor<?> sensor, java.lang.String ID, NotifierService notifierService, java.lang.String readerID, int serverSocketPort, java.lang.Boolean restdebug, java.util.Set<AbstractCommandConfiguration<?>> commandConfigurations)
public void sendTag(byte[] message)
tag
- public void sendTags(java.util.Set<TagReadEvent> tres)
tag
- public void connectionLost(java.lang.Throwable arg0)
connectionLost
in interface org.eclipse.paho.client.mqttv3.MqttCallback
public void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken arg0)
deliveryComplete
in interface org.eclipse.paho.client.mqttv3.MqttCallback
public void messageArrived(java.lang.String arg0, org.eclipse.paho.client.mqttv3.MqttMessage arg1) throws java.lang.Exception
messageArrived
in interface org.eclipse.paho.client.mqttv3.MqttCallback
java.lang.Exception
public java.util.Set<TagReadEvent> processTags(java.lang.String json) throws java.io.IOException
java.io.IOException