org.apache.cxf.management.web.logging
Interface ReadableLogStorage

All Known Subinterfaces:
ReadWriteLogStorage
All Known Implementing Classes:
ReadOnlyFileStorage

public interface ReadableLogStorage

Can be used by pull-style loggers to read the records from some external storage


Method Summary
 void close()
          Close the storage
 int getSize()
          Get the size of storage (in records)
 int load(List<LogRecord> list, org.apache.cxf.jaxrs.ext.search.SearchCondition<LogRecord> condition, int pageNumber, int pageSize)
          Read the records and load them into a provided list
 

Method Detail

load

int load(List<LogRecord> list,
         org.apache.cxf.jaxrs.ext.search.SearchCondition<LogRecord> condition,
         int pageNumber,
         int pageSize)
Read the records and load them into a provided list

Parameters:
list - the list saved records should be added to
condition - the condition loaded records must meet, can be null
pageNumber - the initial page to have records loaded from
int - pageSize the max number of records to load from the storage
Returns:
the current page number; it may be different from the starting page if certain records within the given page range did not match the search condition.

getSize

int getSize()
Get the size of storage (in records)

Returns:
the size, -1 if not known, for ex, when reading from an open file containing log entries

close

void close()
Close the storage



Apache CXF