|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
This single access point for Reader Management module to access the message repository. The instance class will be initiated in ResourceCenter.
Field Summary | |
---|---|
static int |
RETRIEVE_ALL
flag to set the retrieval of messages to all messages in the repo. |
Method Summary | |
---|---|
void |
clearAdapter(java.lang.String adapter)
clear all the items that belong to a given adapter. |
void |
clearAll()
Clear all the items in repository. |
void |
clearReader(java.lang.String adapter,
java.lang.String reader)
clear all the items that belong to a given reader on a given adapter. |
void |
close()
How the resource layer (File System, Database, and etc.) close and destroy related resource handlers. |
int |
count(java.lang.String adaptor,
java.lang.String reader)
returns the number of messages in the repository to a given filter. |
LLRPMessageItem |
get(java.lang.String aMsgSysId)
Get the LLRP Message Item from repository according to the unique Message ID. |
java.util.ArrayList<LLRPMessageItem> |
get(java.lang.String adaptorName,
java.lang.String readerName,
int num,
boolean content)
returns all the messages from the specified adaptor and the reader limited by num. if you set num to RETRIEVE_ALL all messages get returned. |
void |
open()
How the resource layer (File System, Database, and etc.) initiates its resources. |
void |
put(LLRPMessageItem aMessage)
Put the LLRP Message Item to the repository |
Field Detail |
---|
static final int RETRIEVE_ALL
Method Detail |
---|
void open()
void close()
LLRPMessageItem get(java.lang.String aMsgSysId)
aMsgSysId
- The unique message ID
void put(LLRPMessageItem aMessage)
aMessage
- LLRP Message Wrapper Itemjava.util.ArrayList<LLRPMessageItem> get(java.lang.String adaptorName, java.lang.String readerName, int num, boolean content)
adaptorName
- the name of the adaptor.readerName
- the name of the reader.num
- how many messages to retrieve.content
- if true retrieve the message content, false no content.
int count(java.lang.String adaptor, java.lang.String reader)
adaptor
- the name of the adaptor to filter. if null all the
messages in the repository get return.reader
- the name of the reader to filter. if null all the
messages of the given adaptor will be returned.
void clearAll()
void clearAdapter(java.lang.String adapter)
adapter
- the name of the adapter to clear.void clearReader(java.lang.String adapter, java.lang.String reader)
adapter
- the name of the adapter where the reader belongs to.reader
- the name of the reader to clear.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |