public class AlienAutonomousSensor extends AbstractSensor<AlienAutonomousSensorSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo
Mbeaninfo for this class.
|
Constructor and Description |
---|
AlienAutonomousSensor(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 id)
Destroy a sesnor session.
|
java.lang.String |
getDisplayName()
This method returns a display name for clients to use.
|
java.lang.Integer |
getMaxNumberAutonomousReaders() |
javax.management.MBeanInfo |
getMBeanInfo()
Get the MBean info.
|
java.lang.Integer |
getNotifyPort() |
java.util.Map<java.lang.String,SensorSession> |
getSensorSessions()
Get all currently created reader sessions.
|
void |
setDisplayName(java.lang.String displayName) |
void |
setMaxNumberAutonomousReaders(java.lang.Integer maxNumberAutonomousReaders) |
void |
setNotifierService(NotifierService notifierService) |
void |
setNotifyPort(java.lang.Integer serverSocketPort) |
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 AlienAutonomousSensor(java.util.Set<AbstractCommandConfiguration<?>> commands)
public void setNotifierService(NotifierService notifierService)
notifierService
- the notifierService to setpublic void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<AlienAutonomousSensorSession>
public java.lang.String createSensorSession(SessionDTO sessionDTO)
AbstractSensor
createSensorSession
in class AbstractSensor<AlienAutonomousSensorSession>
public java.lang.String createSensorSession()
AbstractSensor
createSensorSession
in class AbstractSensor<AlienAutonomousSensorSession>
public void destroySensorSession(java.lang.String id)
AbstractSensor
destroySensorSession
in class AbstractSensor<AlienAutonomousSensorSession>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<AlienAutonomousSensorSession>
public java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<AlienAutonomousSensorSession>
public java.lang.String getDisplayName()
AbstractSensor
public void setDisplayName(java.lang.String displayName)
public java.lang.Integer getNotifyPort()
public void setNotifyPort(java.lang.Integer serverSocketPort)
serverSocketPort
- the serverSocketPort to setpublic java.lang.Integer getMaxNumberAutonomousReaders()
public void setMaxNumberAutonomousReaders(java.lang.Integer maxNumberAutonomousReaders)
maxNumberAutonomousReaders
- the maxNumberAutonomousReaders to setpublic javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService