|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.llrp.adaptor.ReaderMetaData
public class ReaderMetaData
Meta data that contains all information about the reader. this is for example the reader name, the address, the port, etc. ...
Constructor Summary | |
---|---|
ReaderMetaData()
default constructor. |
|
ReaderMetaData(ReaderMetaData other)
copy constructor that creates a complete copy of the meta data. |
Method Summary | |
---|---|
void |
_newSession()
starts a new session. |
void |
_packageReceived()
increases the number of received packages by one. |
void |
_packageSent()
increases the number of sent packages by one. |
void |
_setAlive(boolean alive)
|
void |
_setAllowNKeepAliveMisses(int allowNKeepAliveMisses)
|
void |
_setClientInitiated(boolean clientInitiated)
|
void |
_setConnected(boolean connected)
|
void |
_setConnectImmediately(boolean connectImmediately)
|
void |
_setKeepAlivePeriod(int keepAlivePeriod)
|
void |
_setPackagesCurrentSessionReceived(int packagesCurrentSessionReceived)
|
void |
_setPackagesCurrentSessionSent(int packagesCurrentSessionSent)
|
void |
_setPackagesReceived(int packagesReceived)
|
void |
_setPackagesSent(int packagesSent)
|
void |
_setPort(int port)
|
void |
_setReaderAddress(java.lang.String readerAddress)
|
void |
_setReaderName(java.lang.String readerName)
|
void |
_setReportKeepAlive(boolean reportKeepAlive)
|
int |
getAllowNKeepAliveMisses()
|
int |
getKeepAlivePeriod()
|
int |
getPackagesCurrentSessionReceived()
|
int |
getPackagesCurrentSessionSent()
|
int |
getPackagesReceived()
|
int |
getPackagesSent()
|
int |
getPort()
|
java.lang.String |
getReaderAddress()
|
java.lang.String |
getReaderName()
|
boolean |
isAlive()
|
boolean |
isClientInitiated()
|
boolean |
isConnected()
|
boolean |
isConnectImmediately()
|
boolean |
isReportKeepAlive()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReaderMetaData()
public ReaderMetaData(ReaderMetaData other)
other
- the meta data object to clone;Method Detail |
---|
public void _newSession()
public void _packageReceived()
public void _packageSent()
public java.lang.String toString()
toString
in class java.lang.Object
public void _setKeepAlivePeriod(int keepAlivePeriod)
keepAlivePeriod
- the interval for the reader to send a keep-alive message.public int getKeepAlivePeriod()
public void _setAllowNKeepAliveMisses(int allowNKeepAliveMisses)
allowNKeepAliveMisses
- how many times a keep-alive can be missed.public int getAllowNKeepAliveMisses()
public void _setPort(int port)
port
- the port where to connect.public int getPort()
public void _setReaderAddress(java.lang.String readerAddress)
readerAddress
- the address of the physical reader.public java.lang.String getReaderAddress()
public void _setReaderName(java.lang.String readerName)
readerName
- the name of this logical reader.public java.lang.String getReaderName()
public void _setAlive(boolean alive)
alive
- whether the reader is alive.public boolean isAlive()
public void _setPackagesSent(int packagesSent)
packagesSent
- the number of sent packages in total.public int getPackagesSent()
public void _setPackagesReceived(int packagesReceived)
packagesReceived
- the number of received packages in total.public int getPackagesReceived()
public void _setPackagesCurrentSessionSent(int packagesCurrentSessionSent)
packagesCurrentSessionSent
- the number of sent packages in the current session.public int getPackagesCurrentSessionSent()
public void _setPackagesCurrentSessionReceived(int packagesCurrentSessionReceived)
packagesCurrentSessionReceived
- the number of received packages in the current session.public int getPackagesCurrentSessionReceived()
public void _setReportKeepAlive(boolean reportKeepAlive)
reportKeepAlive
- whether keep alive messages get logged or not.public boolean isReportKeepAlive()
public void _setClientInitiated(boolean clientInitiated)
clientInitiated
- the clientInitiated to setpublic boolean isClientInitiated()
public void _setConnected(boolean connected)
connected
- flags whether the reader is connected or not.public boolean isConnected()
public void _setConnectImmediately(boolean connectImmediately)
connectImmediately
- tells whether this reader connects directly after creation.public boolean isConnectImmediately()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |