Public Member Functions | |
IOLogsHelper (LoggingClient client) | |
void | loadLogs (BufferedReader br, ACSRemoteLogListener logListener, ACSRemoteErrorListener errorListener, int progressRange) |
void | saveLogs (String fileName, boolean compress, int level, LogCache cache) throws IOException |
void | done () |
Override void | bytesRead (long bytes) |
Override void | bytesWritten (long bytes) |
Override void | logsRead (int numOfLogs) |
Override void | logsWritten (int numOfLogs) |
boolean | isPerformingIO () |
Private Member Functions | |
String | formatErrorMsg (String msg) |
Private Attributes | |
IOThread | thread = null |
ProgressMonitor | progressMonitor |
IOHelper | ioHelper = new IOHelper() |
LoggingClient | loggingClient = null |
long | bytesRead |
int | logsRead |
int | logsWritten |
LogTableDataModel
class shorter and more readable.
This class instantiate a new thread for each load/save. To cleanly close, the done()
must be called.
This class allows only one load/save at a time. If an I/O is requested while another one is in progress, an exception is thrown.
This class is not thread safe!
|
Build an IOCacheHelper object |
|
Moves the progress bar of the progress monitor
|
|
|
|
Release the resource acquired by this object It terminates the thread so the object can be deleted by the JVM NOTE: when the thread is terminate it is not possible to request asynchronous services |
|
Return a string formatted for JOptionPane making a word wrap
|
|
Check if a load/save is in progress
|
|
Load the logs from the given file in the Cache appending their starting positions in the index vector. The logs are appended at the end of the cache as well as the new positions are appended at the end of the index vector. The load is performed in a thread as it might be very slow
The filter, discard level and audience of the engine are applied while loading. This is done by applying to
|
|
Change the label of the progress monitor
|
|
|
|
Save the logs in a file.
|
|
The bytes read during a load |
|
The IOHelper performing load and save |
|
The logging client |
|
The number of logs read while loading |
|
The number of logs read while saving |
|
The dialog |
|
The
|