Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::archive::ArchiveConnectionManager Class Reference

List of all members.

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

Detailed Description

A class to connect and interact with the archive

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

Author:
acaproni


Member Enumeration Documentation

enum alma::acs::logging::archive::ArchiveConnectionManager::DBState
 

The possible states of the database

Author:
acaproni
Enumeration values:
png 
png 
icon  Constructor

Parameters:
iconStr The icon of the state


Constructor & Destructor Documentation

alma::acs::logging::archive::ArchiveConnectionManager::ArchiveConnectionManager LoggingClient  loggingClient  )  [inline]
 

Constructor

Parameters:
loggingClient The logging client


Member Function Documentation

DBState alma::acs::logging::archive::ArchiveConnectionManager::getDBStatus  )  [inline]
 

Returns:
The status of the DB

Collection alma::acs::logging::archive::ArchiveConnectionManager::getLogs String  from,
String  to,
short  minType,
short  maxType,
String  routine,
String  source,
String  process,
int  maxRows
throws Exception [inline]
 

Get the logs from the archive

Parameters:
from Start time
to End time
minType Minimum log type
maxType Maximum log type
routine The routine name
source The source
process The process
maxRows Max number of logs to read from the database
Returns:
The logs read from the database
Exceptions:
Exception 

Method alma::acs::logging::archive::ArchiveConnectionManager::getMethod Object  obj  )  [inline, private]
 

Get the method to retrieve log from the database

Parameters:
obj The object containing the method
Returns:
The getLog method of the object

Object alma::acs::logging::archive::ArchiveConnectionManager::loadArchiveClass  )  [inline, private]
 

Load the class to talk with the archive

Returns:
An object to submit wueries to the database null if something went wrong loading the class

void alma::acs::logging::archive::ArchiveConnectionManager::showDBStatus String  msg  )  [inline, private]
 

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

Parameters:
msg A message to show as tool tip in the icon of the status of the DB connection


Member Data Documentation

Object alma::acs::logging::archive::ArchiveConnectionManager::archive = null [private]
 

The class to talk to the archive

final String alma::acs::logging::archive::ArchiveConnectionManager::ARCHIVE_CLASS_NAME = "alma.archive.logging.ArchiveLoggingQuery" [private]
 

The name of the class, the method and so on to load.

Generated by ARCHIVE and could not be present at run time

Method alma::acs::logging::archive::ArchiveConnectionManager::getLogMethod [private]
 

The method to get logs from the database

LoggingClient alma::acs::logging::archive::ArchiveConnectionManager::logging [private]
 

The application

final String alma::acs::logging::archive::ArchiveConnectionManager::METHOD_NAME = "getLog" [private]
 

The name of the method to read logs from the database

Generated by ARCHIVE and could not be present at run time

DBState alma::acs::logging::archive::ArchiveConnectionManager::status [private]
 

The status of the connection with the DB


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:44 2009 for ACS Java API by doxygen 1.3.8