|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Adaptor
The interface Adaptor provides a general interface how to access a set of LLRP readers.
Method Summary | |
---|---|
boolean |
containsReader(java.lang.String readerName)
checks whether a readerName already exists. |
void |
define(java.lang.String readerName,
java.lang.String readerAddress,
boolean clientInitiatedConnection,
boolean connectImmediately)
defines a new LLRP reader on this adaptor. |
void |
define(java.lang.String readerName,
java.lang.String readerAddress,
int port,
boolean clientInitiatedConnection,
boolean connectImmediately)
defines a new LLRP reader on this adaptor. |
void |
deregisterFromAsynchronous(AsynchronousNotifiable receiver)
deregister from the asynchronous messages. the receiver will no more receive asynchronous llrp messages. |
void |
disconnectAll()
disconnects all the LLRP readers from this adaptor. |
void |
errorCallback(LLRPRuntimeException e,
java.lang.String readerName)
callback interface for asynchronous error messages from the reader. |
java.lang.String |
getAdaptorName()
returns the name of this adaptor. |
Reader |
getReader(java.lang.String readerName)
returns a requested reader. |
java.util.List<java.lang.String> |
getReaderNames()
returns a list of all currently registered LLRP readers. |
void |
messageReceivedCallback(byte[] message,
java.lang.String readerName)
when a asynchronous message arrives from the reader this method will be invoked. the message then gets dispatched to the registered receivers. |
void |
registerForAsynchronous(AsynchronousNotifiable receiver)
register for asynchronous messages from the reader. |
void |
sendLLRPMessage(java.lang.String readerName,
byte[] message)
sends a llrp message to the specified reader. |
void |
sendLLRPMessageToAllReaders(byte[] message)
sends a llrp message to all the readers. |
void |
setAdaptorName(java.lang.String adaptorName)
sets the name of the adaptor. |
void |
undefine(java.lang.String readerName)
removes a LLRP reader from this adaptor. |
void |
undefineAll()
removes all the LLRP readers from this adaptor. |
Method Detail |
---|
void define(java.lang.String readerName, java.lang.String readerAddress, boolean clientInitiatedConnection, boolean connectImmediately) throws java.rmi.RemoteException, LLRPRuntimeException
readerName
- the name of the LLRP reader.readerAddress
- the address where to contact the LLRP reader.clientInitiatedConnection
- LLRP allows two different ways how to create a connection to
a reader. connectImmediately
- tells whether the reader shall establish connection immediately or notLLRPRuntimeException
- if a runtime exception occurs (like duplicate reader name etc. ...).
java.rmi.RemoteException
- when there was an rmi exception.void define(java.lang.String readerName, java.lang.String readerAddress, int port, boolean clientInitiatedConnection, boolean connectImmediately) throws java.rmi.RemoteException, LLRPRuntimeException
readerName
- the name of the LLRP reader.readerAddress
- the address where to contact the LLRP reader.port
- the port where to connect to.clientInitiatedConnection
- LLRP allows two different ways how to create a connection to
a reader. connectImmediately
- tells whether the reader shall establish connection immediately or notLLRPRuntimeException
- if a runtime exception occurs (like duplicate reader name etc. ...).
java.rmi.RemoteException
- when there was an rmi exception.void undefine(java.lang.String readerName) throws java.rmi.RemoteException, LLRPRuntimeException
readerName
- the name of the LLRP reader to remove.
LLRPRuntimeException
- if a runtime exception occurs (eg reader does not exist etc. ...).
java.rmi.RemoteException
- when there was an rmi exception.void undefineAll() throws java.rmi.RemoteException, LLRPRuntimeException
java.rmi.RemoteException
- when there was an rmi exception.
LLRPRuntimeException
- if a runtime exception occurs (eg reader does not exist etc. ...).void disconnectAll() throws java.rmi.RemoteException, LLRPRuntimeException
java.rmi.RemoteException
- when there was an rmi exception.
LLRPRuntimeException
- if a runtime exception occurs (eg reader does not exist etc. ...).boolean containsReader(java.lang.String readerName) throws java.rmi.RemoteException
readerName
- the name of the reader.
java.rmi.RemoteException
- when there was an rmi exception.java.util.List<java.lang.String> getReaderNames() throws java.rmi.RemoteException
java.rmi.RemoteException
- when there was an rmi exception.Reader getReader(java.lang.String readerName) throws java.rmi.RemoteException
readerName
- the name of the requested reader.
java.rmi.RemoteException
- when there was an rmi exception.java.lang.String getAdaptorName() throws java.rmi.RemoteException
java.rmi.RemoteException
- when there was an rmi exception.void setAdaptorName(java.lang.String adaptorName) throws java.rmi.RemoteException
adaptorName
- the name of the adaptor to set.
java.rmi.RemoteException
void sendLLRPMessage(java.lang.String readerName, byte[] message) throws java.rmi.RemoteException, LLRPRuntimeException
readerName
- the name of the reader where to send the message.message
- the llrp message.
LLRPRuntimeException
- whever a runtime error occurs.
java.rmi.RemoteException
- when there was an rmi exception.void sendLLRPMessageToAllReaders(byte[] message) throws java.rmi.RemoteException, LLRPRuntimeException
message
- the llrp message.
LLRPRuntimeException
- whever a runtime error occurs.
java.rmi.RemoteException
- when there was an rmi exception.void registerForAsynchronous(AsynchronousNotifiable receiver) throws java.rmi.RemoteException
receiver
- the receiver that shall be notified with the message.
java.rmi.RemoteException
- when there was an rmi exception.void deregisterFromAsynchronous(AsynchronousNotifiable receiver) throws java.rmi.RemoteException
receiver
- the receiver to deregister.
java.rmi.RemoteException
- when there was an rmi exception.void messageReceivedCallback(byte[] message, java.lang.String readerName) throws java.rmi.RemoteException
message
- the llrp message.readerName
- the name of the reader that triggered the event.
java.rmi.RemoteException
- when there was an rmi exception.void errorCallback(LLRPRuntimeException e, java.lang.String readerName) throws java.rmi.RemoteException
e
- the exception that has been reported.readerName
- the name of the reader where the error occured.
java.rmi.RemoteException
- whenver there is an error on transport level (rmi).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |