public abstract class AbstractIPSensorSession extends AbstractSensorSession
Constructor and Description |
---|
AbstractIPSensorSession(AbstractSensor<?> sensor,
java.lang.String ID,
java.lang.String host,
int port,
int reconnectionInterval,
int maxConAttempts,
java.util.Set<AbstractCommandConfiguration<?>> commandConfigurations)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Close the connection and stop processing of commands.
|
java.lang.String |
getHost()
Get the host this session is connected to
|
int |
getPort()
Get the port this session is connected to
|
java.lang.String |
toString() |
getCommandInstance, getStatus, killComand, submit, submit, submit, submitAndBlock, suspendCommand
connect, getCommands, getDTO, getID, getSensor, getTimeout, handleTimeout, killAllCommands, restoreCommands
public AbstractIPSensorSession(AbstractSensor<?> sensor, java.lang.String ID, java.lang.String host, int port, int reconnectionInterval, int maxConAttempts, java.util.Set<AbstractCommandConfiguration<?>> commandConfigurations)
sensor
- host
- HostName of the hardware readerport
- Port of the hardware readerreconnectionInterval
- Length of time between reconnects. Specified in MSmaxConAttempts
- Maximum number of reconnect attempts to makecommandConfigurations
- public java.lang.String getHost()
public int getPort()
public void disconnect()
SensorSession
disconnect
in class SensorSession
public java.lang.String toString()
toString
in class java.lang.Object