public class AwidSensor extends AbstractSensor<AwidSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo
Mbeaninfo for this class.
|
Constructor and Description |
---|
AwidSensor(java.util.Set<AbstractCommandConfiguration<?>> commands,
boolean is3014)
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 id)
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 |
getHost() |
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 |
setHost(java.lang.String host) |
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 AwidSensor(java.util.Set<AbstractCommandConfiguration<?>> commands, boolean is3014)
commands
- public javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService
public java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<AwidSession>
public java.lang.String createSensorSession() throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<AwidSession>
CannotCreateSessionException
- - if the session cannot be createdpublic java.lang.String createSensorSession(SessionDTO sessionDTO) throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<AwidSession>
CannotCreateSessionException
- if the session cannot be createdpublic void destroySensorSession(java.lang.String id) throws CannotDestroySensorException
AbstractSensor
destroySensorSession
in class AbstractSensor<AwidSession>
CannotDestroySensorException
public void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<AwidSession>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<AwidSession>
public java.lang.String getDisplayName()
AbstractSensor
public void setDisplayName(java.lang.String displayName)
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- the host to setpublic java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
public java.lang.Boolean getDisableAutoStart()
public void setDisableAutoStart(java.lang.Boolean disableAutoStart)
public java.lang.Integer getMaxNumConnectionAttempts()
public void setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts)
maxNumConnectionAttempts
- the maxNumConnectionAttempts to setpublic java.lang.Integer getReconnectionInterval()
public void setReconnectionInterval(java.lang.Integer reconnectionInterval)
reconnectionInterval
- the reconnectionInterval to set