public class LLRPReader extends AbstractSensor<LLRPReaderSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo
Mbeaninfo for this class.
|
Constructor and Description |
---|
LLRPReader(java.util.Set<AbstractCommandConfiguration<?>> commands)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyPropertyChanges()
Send properties that have been modified to the physical reader
|
java.lang.String |
createSensorSession()
Create a new sensor session.
|
java.lang.String |
createSensorSession(SessionDTO sessionDTO)
This method is called when a sensor session is being created from a DTO,
such as restoring the session from persistance.
|
void |
destroySensorSession(java.lang.String sessionid)
Destroy a sesnor session.
|
java.lang.String |
getDisplayName()
This method returns a display name for clients to use.
|
java.lang.String |
getIpAddress()
Returns the IP address of the reader.
|
java.lang.Integer |
getMaxNumConnectionAttempts()
Gets the number of connection attempts to try before giving up.
|
javax.management.MBeanInfo |
getMBeanInfo()
Get the MBean info.
|
java.lang.Integer |
getPort()
Gets the port.
|
java.lang.String |
getReaderConfigPath()
Returns the IP address of the reader.
|
java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> |
getReaderProperties()
Gets the properties for the reader.
|
java.lang.Integer |
getReconnectionInterval()
Gets the reconnect interval.
|
java.util.Map<java.lang.String,SensorSession> |
getSensorSessions()
Get all currently created reader sessions.
|
void |
setDisplayName(java.lang.String displayName) |
void |
setIpAddress(java.lang.String ipAddress)
Sets the IP address of the reader.
|
void |
setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts)
Sets the number of connection attempts to try before giving up.
|
void |
setPort(java.lang.Integer port)
Sets the port.
|
void |
setReaderConfigPath(java.lang.String readerConfigPath)
Sets the IP address of the reader.
|
void |
setReconnectionInterval(java.lang.Integer reconnectionInterval)
Sets the reconnect interval.
|
void |
unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration,
java.util.Map<?,?> properties)
Notifier the sensor that a command configuration has disappeared.
|
addReceiver, getChildren, getDTO, getName, isImmutable, isInUse, receive, register, register, removeReceiver, send, sendEvent, setName, setNotifiyService, subscribe, toString, unsubscribe
getAttribute, getAttributes, getAttributes, getID, setAttribute, setAttributes, setID
public static final javax.management.MBeanInfo mbeaninfo
public LLRPReader(java.util.Set<AbstractCommandConfiguration<?>> commands)
public java.lang.String createSensorSession(SessionDTO sessionDTO) throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<LLRPReaderSession>
CannotCreateSessionException
- if the session cannot be createdpublic java.lang.String createSensorSession() throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<LLRPReaderSession>
CannotCreateSessionException
- - if the session cannot be createdpublic void destroySensorSession(java.lang.String sessionid)
AbstractSensor
destroySensorSession
in class AbstractSensor<LLRPReaderSession>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<LLRPReaderSession>
public java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<LLRPReaderSession>
public void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<LLRPReaderSession>
public java.lang.String getDisplayName()
AbstractSensor
public void setDisplayName(java.lang.String displayName)
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
ipAddress
- the ipAddress to setpublic java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
port
- the port to setpublic java.lang.Integer getReconnectionInterval()
public void setReconnectionInterval(java.lang.Integer reconnectionInterval)
reconnectionInterval
- the reconnectionInterval to setpublic java.lang.Integer getMaxNumConnectionAttempts()
public void setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts)
maxNumConnectionAttempts
- the maxNumConnectionAttempts to setpublic java.lang.String getReaderConfigPath()
public void setReaderConfigPath(java.lang.String readerConfigPath)
ipAddress
- the ipAddress to setpublic java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> getReaderProperties()
public javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService