public class GenericSensor extends AbstractSensor<GenericSensorSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo
MBeanInfo for this class.
|
Constructor and Description |
---|
GenericSensor() |
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.
|
javax.management.MBeanInfo |
getMBeanInfo()
Get the MBean info.
|
java.lang.Integer |
getPort() |
java.lang.Boolean |
getRestDebug()
Should the rest service be started
|
java.lang.Integer |
getRestPort()
The port to use for incoming rest connections
|
java.lang.Integer |
getRestSSLPort()
The port to use for incoming rest ssl connections
|
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 |
setPort(java.lang.Integer port)
Sets the port for the reader.
|
void |
setRestDebug(java.lang.Boolean enabled) |
void |
setRestPort(java.lang.Integer port) |
void |
setRestSSLPort(java.lang.Integer port) |
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 void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<GenericSensorSession>
public java.lang.String createSensorSession() throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<GenericSensorSession>
CannotCreateSessionException
- - if the session cannot be createdpublic java.lang.String createSensorSession(SessionDTO sessionDTO) throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<GenericSensorSession>
CannotCreateSessionException
- if the session cannot be createdpublic void destroySensorSession(java.lang.String id) throws CannotDestroySensorException
AbstractSensor
destroySensorSession
in class AbstractSensor<GenericSensorSession>
CannotDestroySensorException
public java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<GenericSensorSession>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<GenericSensorSession>
public javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService
public java.lang.String getDisplayName()
AbstractSensor
public void setDisplayName(java.lang.String displayName)
public java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
port
- public java.lang.Integer getRestPort()
public void setRestPort(java.lang.Integer port)
public java.lang.Integer getRestSSLPort()
public void setRestSSLPort(java.lang.Integer port)
public java.lang.Boolean getRestDebug()
public void setRestDebug(java.lang.Boolean enabled)
public java.lang.Boolean getDisableAutoStart()
public void setDisableAutoStart(java.lang.Boolean disableAutoStart)