|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Reader
This class models a logical entity of a physical reader. it maintains the connectivity to the physical reader.
| Method Summary | |
|---|---|
void |
connect(boolean clientInitiatedConnection)
connects this reader to the real physical llrp reader. |
void |
deregisterFromAsynchronous(AsynchronousNotifiable receiver)
deregister from the asynchronous messages. the receiver will no more receive asynchronous llrp messages. |
void |
disconnect()
disconnect the reader stub from the physical reader. |
int |
getKeepAlivePeriod()
returns the keepalive period set for this reader. |
ReaderMetaData |
getMetaData()
the reader meta-data contains information about the reader, the settings, etc. |
int |
getPort()
return the port of this reader. |
java.lang.String |
getReaderAddress()
return the ip address of this reader. |
java.lang.String |
getReaderName()
return the name of this reader. |
boolean |
isClientInitiated()
tell if this reader maintains a client initiated connection or if the reader accepts a connection from a llrp reader. |
boolean |
isConnected()
tells if the reader is connected or not. |
boolean |
isConnectImmediate()
tells whether this reader connects immediately after creation. |
boolean |
isReportKeepAlive()
|
void |
reconnect()
try to reconnect the reader. |
void |
registerForAsynchronous(AsynchronousNotifiable receiver)
register for asynchronous messages from the physical reader. |
void |
send(byte[] message)
send a message to the llrp reader. |
void |
setClientInitiated(boolean clientInitiated)
sets the connect behavior to the specified value. |
void |
setConnectImmediate(boolean value)
tells whether this reader connects immediately after creation. |
void |
setKeepAlivePeriod(int keepAlivePeriod,
int times,
boolean report,
boolean throwException)
sets the connection timeout period for the reader. if the times * keepAlivePeriod has passed by without a notification from the reader the reader gets disconnected. |
void |
setReportKeepAlive(boolean report)
if set to true, the reader will report all the keep-alive messages exchanged between the reader and the driver stub. |
| Method Detail |
|---|
void connect(boolean clientInitiatedConnection)
throws LLRPRuntimeException,
java.rmi.RemoteException
clientInitiatedConnection - if the connection is initiated by the client then
you should pass true. if the physical reader initiates the connection then provide false.
LLRPRuntimeException - whenever an error occurs.
java.rmi.RemoteException - whenever there is an rmi error.
void disconnect()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
void reconnect()
throws LLRPRuntimeException,
java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
LLRPRuntimeException - whenever there is a exception during connection setup.
void send(byte[] message)
throws java.rmi.RemoteException
message - the message to be sent.
java.rmi.RemoteException - whenever there is an rmi error.
boolean isConnected()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
java.lang.String getReaderAddress()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
java.lang.String getReaderName()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
int getPort()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
boolean isClientInitiated()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an rmi error.
void setClientInitiated(boolean clientInitiated)
throws java.rmi.RemoteException
clientInitiated - if true then the client issues the connect.
java.rmi.RemoteException - whever there is an RMI error.
boolean isConnectImmediate()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an RMI error.
void setConnectImmediate(boolean value)
throws java.rmi.RemoteException
value - whether this reader connects immediately after creation.
java.rmi.RemoteException - whenever there is an RMI error.
void registerForAsynchronous(AsynchronousNotifiable receiver)
throws java.rmi.RemoteException
receiver - the receiver that shall be notified with the message.
java.rmi.RemoteException - whenever there is an RMI error.
void deregisterFromAsynchronous(AsynchronousNotifiable receiver)
throws java.rmi.RemoteException
receiver - the receiver to deregister.
java.rmi.RemoteException - whenever there is an RMI error.
void setKeepAlivePeriod(int keepAlivePeriod,
int times,
boolean report,
boolean throwException)
throws java.rmi.RemoteException
keepAlivePeriod - the reader must send in this period a keepalive message. time in ms.times - how many missed keepalive messages are ok.report - whether to report the keepalive messages to the repo or not.throwException - whether to throw an exception upon disconnection.
java.rmi.RemoteException - whenever there is an RMI error.
int getKeepAlivePeriod()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an RMI error.
void setReportKeepAlive(boolean report)
throws java.rmi.RemoteException
report - if true report the status messages. if false not.
java.rmi.RemoteException - whenever there is an RMI error.
boolean isReportKeepAlive()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an RMI error.
ReaderMetaData getMetaData()
throws java.rmi.RemoteException
java.rmi.RemoteException - whenever there is an RMI error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||