Public Types | Public Member Functions

alma.acs.logging.archive.ArchiveConnectionManager Class Reference

List of all members.

Public Types

enum  DBState { DATABASE_OK = ("/databaseLink.png"), DATABASE_NOP = ("/databaseNOP.png"), DATABASE_WORKING = ("/databaseBusy.png") }

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

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

The possible states of the database

Author:
acaproni
Enumerator:
DATABASE_OK 
DATABASE_NOP 
DATABASE_WORKING 

Constructor & Destructor Documentation

alma.acs.logging.archive.ArchiveConnectionManager.ArchiveConnectionManager ( LoggingClient  loggingClient  ) 

Constructor

Parameters:
loggingClient The logging client

Member Function Documentation

DBState alma.acs.logging.archive.ArchiveConnectionManager.getDBStatus (  ) 
Returns:
The status of the DB

References com.cosylab.logging.LoggingClient.inDebugMode().

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

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 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties