public class ThingmagicReader extends AbstractSensor<ThingmagicReaderSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo
Mbeaninfo for this class.
|
Constructor and Description |
---|
ThingmagicReader(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.Boolean |
getDisableAutoStart() |
java.lang.String |
getDisplayName()
This method returns a display name for clients to use.
|
java.lang.String |
getIpAddress() |
java.lang.Integer |
getMaxNumConnectionAttempts() |
javax.management.MBeanInfo |
getMBeanInfo()
Get the MBean info.
|
java.lang.Integer |
getPort() |
java.lang.Integer |
getReconnectionInterval() |
java.util.Map<java.lang.String,SensorSession> |
getSensorSessions()
Get all currently created reader sessions.
|
void |
setDisableAutoStart(java.lang.Boolean disableAutoStart) |
void |
setDisplayName(java.lang.String displayName) |
void |
setIpAddress(java.lang.String ipAddress) |
void |
setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts) |
void |
setPort(java.lang.Integer port) |
void |
setReconnectionInterval(java.lang.Integer reconnectionInterval) |
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 ThingmagicReader(java.util.Set<AbstractCommandConfiguration<?>> commands)
public void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<ThingmagicReaderSession>
public java.lang.String createSensorSession() throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<ThingmagicReaderSession>
CannotCreateSessionException
- - if the session cannot be createdpublic java.lang.String createSensorSession(SessionDTO sessionDTO) throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<ThingmagicReaderSession>
CannotCreateSessionException
- if the session cannot be createdpublic void destroySensorSession(java.lang.String sessionid)
AbstractSensor
destroySensorSession
in class AbstractSensor<ThingmagicReaderSession>
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.Boolean getDisableAutoStart()
public void setDisableAutoStart(java.lang.Boolean disableAutoStart)
public java.lang.Integer getReconnectionInterval()
public void setReconnectionInterval(java.lang.Integer reconnectionInterval)
RECONNECTION_INTERVAL
- the RECONNECTION_INTERVAL to setpublic java.lang.Integer getMaxNumConnectionAttempts()
public void setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts)
MAX_CONNECTION_ATTEMPTS
- the MAX_CONNECTION_ATTEMPTS to setpublic java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<ThingmagicReaderSession>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<ThingmagicReaderSession>
public javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService