Public Member Functions | |
ZoomManager () | |
ZoomManager (String folder, LogTypeHelper min, LogTypeHelper max) throws ZoomException | |
boolean | isAvailable () |
void | setFilesRepository (String folder) throws ZoomException |
void | setLevels (LogTypeHelper min, LogTypeHelper max) |
String | getRepository () |
LogTypeHelper | getMinLevel () |
LogTypeHelper | getMaxLevel () |
void | zoom (String startDate, String endDate, ACSRemoteLogListener logListener, ZoomProgressListener zoomListener, ACSRemoteErrorListener errorListener) throws FileNotFoundException, ZoomException |
boolean | isLoadingLogs () |
void | stopZoom () |
Static Public Attributes | |
final String | MIN_LEVEL_PROPERTY_NAME = "jlog.archive.zoom.MinLevel" |
final String | MAX_LEVEL_PROPERTY_NAME = "jlog.archive.zoom.MaxLevel" |
final String | FILES_LOCATION_PROPERTY_NAME = "jlog.archive.zoom.filesFolder" |
Private Attributes | |
FilesManager | filesManager = null |
LogTypeHelper | minLevel = LogTypeHelper.values()[0] |
LogTypeHelper | maxLevel = LogTypeHelper.DEBUG |
volatile boolean | loadingLogs = false |
A ZoomManager
objects is the entity that perform the zooming by delegating to other classes of the zoom
package.
The min and max levels, if not passed in the constructor, are initialized from java properties and if those properties does not exist from default values.
Note: only one loading operation is possible at the same time.
|
Constructor. The folder is retrieved from a java property and the levels are set to defaults.
|
|
Constructor
|
|
|
|
|
|
Return the path of the folder containing XML log files. If the folder is invalid
|
|
Check if the zoom feature is available. The zoom is available if the files manager and the levels are valid. In particular, the files manager must have a valid folder with a valid set of XML files. The folder is valid if there are XML files to read.
|
|
Return
|
|
Set the folder to read XML files of logs from.
|
|
Set the levels of the logs to read while zooming
|
|
Interrupt the zoom. The method does nothing if no zoom is currently in progress. |
|
Load the logs.
|
|
The name of the property containing the folder where ARCHIVES writes files into. Note: this way of getting the folder could change in further releases. |
|
The files manager to get logs from a set of XML files |
|
Signal if a loading is in progress |
|
The name of the property of the min log level of the zoom |
|
The maximum level of logs to read from files |
|
The name of the property of the min log level of the zoom |
|
The minimum level of logs to read from files |