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

All Known Subinterfaces:
ReadWriteLogStorage

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)
 void load(List<LogRecord> list, org.apache.cxf.jaxrs.ext.search.SearchCondition<LogRecord> condition, int loadFrom, int maxNumberOfRecords)
          Read the records and load them into a provided list
 

Method Detail

load

void load(List<LogRecord> list,
          org.apache.cxf.jaxrs.ext.search.SearchCondition<LogRecord> condition,
          int loadFrom,
          int maxNumberOfRecords)
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
loadFrom - the initial index of the storage to have records loaded from
int - maxNumberOfRecords the max number of records to load from the storage

getSize

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

Parameters:
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