Public Types | |
enum | DBState { png, png, icon = new ImageIcon(ArchiveConnectionManager.class.getResource(iconStr)) } |
Public Member Functions | |
ArchiveConnectionManager (LoggingClient loggingClient) | |
DBState | getDBStatus () |
Collection | getLogs (String from, String to, short minType, short maxType, String routine, String source, String process, int maxRows) throws Exception |
Package Types | |
Private Member Functions | |
Object | loadArchiveClass () |
Method | getMethod (Object obj) |
void | showDBStatus (String msg) |
Private Attributes | |
final String | ARCHIVE_CLASS_NAME = "alma.archive.logging.ArchiveLoggingQuery" |
final String | METHOD_NAME = "getLog" |
DBState | status |
Object | archive = null |
Method | getLogMethod |
LoggingClient | logging |
The connection with the database is not always available. There are 2 possibilities: 1. the code to connect to the DB is not available (it comes from a module in ARCHIVE) 2. the code is available but for some reason something in the communication with the DB doesn't work as expected
|
The possible states of the database
|
|
Constructor
|
|
|
|
Get the logs from the archive
|
|
Get the method to retrieve log from the database
|
|
Load the class to talk with the archive
|
|
Notify the LoggingClient about the status of the connection with the database The icon in the LC is set depending on the actual state of the connection. The tooltip of the icon is set equal to the msg parameter
|
|
The class to talk to the archive |
|
The name of the class, the method and so on to load. Generated by ARCHIVE and could not be present at run time |
|
The method to get logs from the database |
|
The application |
|
The name of the method to read logs from the database Generated by ARCHIVE and could not be present at run time |
|
The status of the connection with the DB |