Public Member Functions | |
void | clear () throws LogCacheException |
void | deleteLog (Integer key) throws LogCacheException |
void | deleteLogs (Collection< Integer > keys) throws LogCacheException |
int | getSize () |
Set< Integer > | keySet () |
ILogEntry | getLog (Integer key) throws LogCacheException |
int | add (ILogEntry log) throws LogCacheException |
void | replaceLog (Integer key, ILogEntry log) throws LogCacheException |
Iterator< ILogEntry > | iterator () |
Integer | getLastLog () |
Integer | getFirstLog () |
int | getFirstLogs (int n, Collection< Integer > keys) |
|
Add a log in the map
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Clear the Map i.e. remove all the logs and keys from the map
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Remove a log from the Map
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Delete a set of logs
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Return the key of the first valid log (FIFO). The key of the first log is 0 but it can change if the log 0 has been deleted.
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Append at most n keys from the first valid logs to the collection. First here means first in the FIFO policy. The number of added keys can be less then n if the cache doesn't contain enough logs.
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Return the key of the last valid log (FIFO) The key of the last log is the key of the last inserted log but it can cheang if such log has been deleted
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Return a log eith the given key
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Return an Iterator to browse the logs in the map. The order the iterator returns the logs is that of the keys.
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
The keys in the map
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|
|
Replace the log in the given position with the new one
Implemented in com::cosylab::logging::client::cache::LogBufferedFileCache, com::cosylab::logging::client::cache::LogFileCache, and com::cosylab::logging::client::cache::LogMultiFileCache.
|