|
||||||||||
| 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()
Closing the repository. |
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. |
java.util.Map<java.lang.String,java.lang.String> |
getArgs()
|
java.sql.Connection |
getDBConnection()
|
ROAccessReportsRepository |
getROAccessRepository()
The ROAccessReportsRepository is implemented via the strategy
pattern. |
void |
initialize(java.util.Map<java.lang.String,java.lang.String> args)
Initializer method for the repository. |
boolean |
isHealth()
|
void |
put(LLRPMessageItem aMessage)
Put the LLRP Message Item to the repository |
| Field Detail |
|---|
static final int RETRIEVE_ALL
| Method Detail |
|---|
void initialize(java.util.Map<java.lang.String,java.lang.String> args)
throws LLRPRuntimeException
args - hash-map with the parameters.
when - there is a problem with initialization (eg. missing param).
LLRPRuntimeExceptionjava.util.Map<java.lang.String,java.lang.String> getArgs()
void close()
boolean isHealth()
LLRPMessageItem get(java.lang.String aMsgSysId)
aMsgSysId - The unique message ID
void put(LLRPMessageItem aMessage)
aMessage - LLRP Message Wrapper Item
java.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.java.sql.Connection getDBConnection()
ROAccessReportsRepository getROAccessRepository()
ROAccessReportsRepository is implemented via the strategy
pattern. Depending on the type of the repository, you will get a
different implementation of this handle at runtime. The respective
implementation will setup the data-structures used to log
RO_ACCESS_REPORTS and ease the access to the stored information.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||