public class ThinkifyUSBSensor extends AbstractSensor<ThinkifyUSBSensorSession>
Modifier and Type | Field and Description |
---|---|
static javax.management.MBeanInfo |
mbeaninfo |
Constructor and Description |
---|
ThinkifyUSBSensor(java.util.Set<AbstractCommandConfiguration<?>> commands) |
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.
|
int |
getag() |
java.lang.Boolean |
getDisableAutoStart() |
java.lang.String |
getDisplayName()
This method returns a display name for clients to use.
|
java.lang.Integer |
getfh() |
java.lang.Integer |
getfl() |
java.lang.String |
getgeneric() |
java.lang.String |
getma() |
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 |
getp() |
java.lang.String |
getPort()
Gets the port.
|
java.lang.Integer |
getq() |
int |
getra() |
int |
getReadRate() |
java.lang.Integer |
getReconnectionInterval()
Gets the reconnect interval.
|
java.util.Map<java.lang.String,SensorSession> |
getSensorSessions()
Get all currently created reader sessions.
|
void |
setag(java.lang.Integer ag) |
void |
setDisableAutoStart(java.lang.Boolean disableAutoStart) |
void |
setDisplayName(java.lang.String displayName) |
void |
setfh(java.lang.Integer fh) |
void |
setfl(java.lang.Integer fl) |
void |
setgeneric(java.lang.String generic) |
void |
setma(java.lang.String ma) |
void |
setMaxNumConnectionAttempts(java.lang.Integer maxNumConnectionAttempts)
Sets the number of connection attempts to try before giving up.
|
void |
setp(java.lang.Integer p) |
void |
setPort(java.lang.String port) |
void |
setq(java.lang.Integer q) |
void |
setra(java.lang.Integer ra) |
void |
setReadRate(java.lang.Integer readrate) |
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 ThinkifyUSBSensor(java.util.Set<AbstractCommandConfiguration<?>> commands)
public java.lang.String createSensorSession() throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<ThinkifyUSBSensorSession>
CannotCreateSessionException
- - if the session cannot be createdpublic java.lang.String createSensorSession(SessionDTO sessionDTO) throws CannotCreateSessionException
AbstractSensor
createSensorSession
in class AbstractSensor<ThinkifyUSBSensorSession>
CannotCreateSessionException
- if the session cannot be createdpublic java.util.Map<java.lang.String,SensorSession> getSensorSessions()
AbstractSensor
getSensorSessions
in class AbstractSensor<ThinkifyUSBSensorSession>
public java.lang.String getPort()
public void setPort(java.lang.String port)
public java.lang.Boolean getDisableAutoStart()
public void setDisableAutoStart(java.lang.Boolean disableAutoStart)
public int getReadRate()
public void setReadRate(java.lang.Integer readrate)
public int getag()
public void setag(java.lang.Integer ag)
public int getra()
public void setra(java.lang.Integer ra)
public java.lang.String getma()
public void setma(java.lang.String ma)
public java.lang.Integer getp()
public void setp(java.lang.Integer p)
public java.lang.Integer getq()
public void setq(java.lang.Integer q)
public java.lang.Integer getfl()
public void setfl(java.lang.Integer fl)
public java.lang.Integer getfh()
public void setfh(java.lang.Integer fh)
public java.lang.String getgeneric()
public void setgeneric(java.lang.String generic)
public void destroySensorSession(java.lang.String id) throws CannotDestroySensorException
AbstractSensor
destroySensorSession
in class AbstractSensor<ThinkifyUSBSensorSession>
CannotDestroySensorException
public void applyPropertyChanges()
AbstractSensor
applyPropertyChanges
in class AbstractSensor<ThinkifyUSBSensorSession>
public java.lang.String getDisplayName()
AbstractSensor
public void setDisplayName(java.lang.String displayName)
public 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 void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensor
unbindCommandConfiguration
in class AbstractSensor<ThinkifyUSBSensorSession>
public javax.management.MBeanInfo getMBeanInfo()
RifidiService
getMBeanInfo
in class RifidiService