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

org.objectweb.cjdbc.common.log.Trace Class Reference

Inheritance diagram for org.objectweb.cjdbc.common.log.Trace:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void debug (Object message)
void debug (Object message, Throwable error)
void error (Object message)
void error (Object message, Throwable error)
void fatal (Object message)
void fatal (Object message, Throwable error)
void info (Object message)
void info (Object message, Throwable error)
void warn (Object message)
void warn (Object message, Throwable error)
boolean isDebugEnabled ()
boolean isInfoEnabled ()
boolean isWarnEnabled ()
boolean isErrorEnabled ()
boolean isFatalEnabled ()

Static Public Member Functions

Trace getLogger (String name)

Protected Member Functions

 Trace (Logger log4jLogger)

Detailed Description

This a wrapper to the log4j logging system. We provide additional features to statically remove tracing.

Author:
Emmanuel Cecchet
Version:
1.0

Definition at line 37 of file Trace.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.log.Trace.Trace Logger  log4jLogger  )  [protected]
 

Creates a new Trace object from a given log4j Logger.

Parameters:
log4jLogger the log4j Logger

Definition at line 47 of file Trace.java.

00048   {
00049     this.log4jLogger = log4jLogger;
00050   }


Member Function Documentation

void org.objectweb.cjdbc.common.log.Trace.debug Object  message,
Throwable  error
 

Logs a message object with the DEBUG Level including the stack trace of the Throwableerror passed as parameter.

Parameters:
message the message object to log
error the exception to log, including its stack trace

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger, and org.objectweb.cjdbc.common.log.StaticNoDebugLogger.

Definition at line 81 of file Trace.java.

00082   {
00083     log4jLogger.debug(message, error);
00084   }

void org.objectweb.cjdbc.common.log.Trace.debug Object  message  ) 
 

Logs a message object with the DEBUG Level.

Parameters:
message the message object to log

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger, and org.objectweb.cjdbc.common.log.StaticNoDebugLogger.

Definition at line 68 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager.AbstractPoolConnectionManager(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.begin(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.enableBackend(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequestWithKeys(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequestWithKeys(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestWithKeysTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestTask.executeTask(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.getBackendStatus(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageSingleThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.joinGroup(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.lazyTransactionStart(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.readCompletedNotify(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.readCompletedNotify(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.RemoveIdleConnectionsThread.run(), org.objectweb.cjdbc.controller.scheduler.singledb.SingleDBPessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb0.RAIDb0PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleReadRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_WRR.setWeight(), org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1_WRR.setWeight(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownServerConnectionThread(), and org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.terminateVirtualDatabaseWorkerThreads().

00069   {
00070     log4jLogger.debug(message);
00071   }

void org.objectweb.cjdbc.common.log.Trace.error Object  message,
Throwable  error
 

Logs a message object with the ERROR Level including the stack trace of the Throwableerror passed as parameter.

Parameters:
message the message object to log.
error the exception to log, including its stack trace.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 104 of file Trace.java.

00105   {
00106     log4jLogger.error(message, error);
00107   }

void org.objectweb.cjdbc.common.log.Trace.error Object  message  ) 
 

Logs a message object with the ERROR Level.

Parameters:
message the message object to log

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 91 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.addBackend(), org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB_RR.chooseBackendForReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB_LPRF.chooseBackendForReadRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.completeFailedOnAllBackends(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.disableAllBackends(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.enableBackend(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2_RR.execReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb2.RAIDb2_LPRF.execReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestWithKeysTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.SelectRequestTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.ReadStoredProcedureTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.BeginTask.executeTask(), org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager.finalizeConnections(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.SimpleConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageSingleThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.protocol.VirtualDatabaseConfiguration.isCompatible(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.isCompatibleBackend(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.joinGroup(), org.objectweb.cjdbc.controller.cache.result.ResultCache.mergeDatabaseSchema(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.mergeDatabaseSchema(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.receive(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.releaseConnection(), org.objectweb.cjdbc.controller.connection.SimpleConnectionManager.releaseConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.releaseConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.releaseConnection(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.RemoveIdleConnectionsThread.run(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.setControllerId(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownDatabases(), and org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownJmxAgent().

00092   {
00093     log4jLogger.error(message);
00094   }

void org.objectweb.cjdbc.common.log.Trace.fatal Object  message,
Throwable  error
 

Logs a message object with the FATAL Level including the stack trace of the Throwableerror passed as parameter.

Parameters:
message the message object to log.
error the exception to log, including its stack trace.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 127 of file Trace.java.

00128   {
00129     log4jLogger.fatal(message, error);
00130   }

void org.objectweb.cjdbc.common.log.Trace.fatal Object  message  ) 
 

Logs a message object with the FATAL Level.

Parameters:
message the message object to log.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 114 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.begin(), and org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.lazyTransactionStart().

00115   {
00116     log4jLogger.fatal(message);
00117   }

Trace org.objectweb.cjdbc.common.log.Trace.getLogger String  name  )  [static]
 

Retrieves a logger by its name.

Parameters:
name logger name
Returns:
trace a Trace instance

Definition at line 58 of file Trace.java.

00059   {
00060     return LogManager.getLogger(name);
00061   }

void org.objectweb.cjdbc.common.log.Trace.info Object  message,
Throwable  error
 

Logs a message object with the INFO Level including the stack trace of the Throwableerror passed as parameter.

Parameters:
message the message object to log.
error the exception to log, including its stack trace.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 150 of file Trace.java.

00151   {
00152     log4jLogger.info(message, error);
00153   }

void org.objectweb.cjdbc.common.log.Trace.info Object  message  ) 
 

Logs a message object with the INFO Level.

Parameters:
message the message object to log.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 137 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.closeVirtualDatabase(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.enableBackend(), org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB.execReadRequest(), org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager.finalizeConnections(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.generateReportIfNeeded(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageSingleThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.joinGroup(), org.objectweb.cjdbc.controller.cache.result.ResultCache.mergeDatabaseSchema(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.mergeDatabaseSchema(), org.objectweb.cjdbc.controller.cache.result.ResultCache.setDatabaseSchema(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.setDatabaseSchema(), org.objectweb.cjdbc.controller.core.shutdown.ControllerWaitShutdownThread.shutdown(), org.objectweb.cjdbc.controller.core.shutdown.ControllerSafeShutdownThread.shutdown(), org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread.shutdown(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownDatabases(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownJmxAgent(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownServerConnectionThread(), org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.terminateVirtualDatabaseWorkerThreads(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.viewAccepted(), and org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.viewControllerList().

00138   {
00139     log4jLogger.info(message);
00140   }

boolean org.objectweb.cjdbc.common.log.Trace.isDebugEnabled  ) 
 

Checks whether this category is enabled for the DEBUG Level.

This function is intended to lessen the computational cost of disabled log debug statements.

For some cat Category object, when you write,

  cat.debug("This is entry number: " + i );
 

You incur the cost constructing the message, concatenatiion in this case, regardless of whether the message is logged or not.

If you are worried about speed, then you should write

  if(cat.isDebugEnabled()) { cat.debug("This is entry number: " + i ); }
 

This way you will not incur the cost of parameter construction if debugging is disabled for cat. On the other hand, if the cat is debug enabled, you will incur the cost of evaluating whether the category is debug enabled twice. Once in isDebugEnabled and once in the debug. This is an insignificant overhead since evaluating a category takes about 1%% of the time it takes to actually log.

Returns:
true if this category is debug enabled, false otherwise.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger, and org.objectweb.cjdbc.common.log.StaticNoDebugLogger.

Definition at line 217 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager.AbstractPoolConnectionManager(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.begin(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.deleteConnection(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestWithKeysTask.executeTask(), org.objectweb.cjdbc.controller.loadbalancer.tasks.WriteRequestTask.executeTask(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.joinGroup(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.lazyTransactionStart(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.notifyWriteCompleted(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.readCompletedNotify(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.readCompletedNotify(), org.objectweb.cjdbc.controller.scheduler.singledb.SingleDBPessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb0.RAIDb0PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleReadRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleReadRequest(), org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1ec_WRR.setWeight(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownServerConnectionThread(), and org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.terminateVirtualDatabaseWorkerThreads().

00218   {
00219     return log4jLogger.isDebugEnabled();
00220   }

boolean org.objectweb.cjdbc.common.log.Trace.isErrorEnabled  ) 
 

Checks whether this category is enabled for the INFO Level. See also isDebugEnabled.

Returns:
true if this category is enabled for INFO Level, false otherwise.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 256 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.getConnection(), and org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection().

00257   {
00258     return log4jLogger.isEnabledFor(Priority.ERROR);
00259   }

boolean org.objectweb.cjdbc.common.log.Trace.isFatalEnabled  ) 
 

Checks whether this category is enabled for the INFO Level. See also isDebugEnabled.

Returns:
true if this category is enabled for INFO Level, false otherwise.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 269 of file Trace.java.

00270   {
00271     return log4jLogger.isEnabledFor(Priority.FATAL);
00272   }

boolean org.objectweb.cjdbc.common.log.Trace.isInfoEnabled  ) 
 

Checks whether this category is enabled for the INFO Level. See also isDebugEnabled.

Returns:
true if this category is enabled for Level INFO, false otherwise.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 230 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.loadbalancer.paralleldb.ParallelDB.execReadRequest(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.cache.result.ResultCache.setDatabaseSchema(), and org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1OptimisticTransactionLevelScheduler.setDatabaseSchema().

00231   {
00232     return log4jLogger.isInfoEnabled();
00233   }

boolean org.objectweb.cjdbc.common.log.Trace.isWarnEnabled  ) 
 

Checks whether this category is enabled for the INFO Level. See also isDebugEnabled.

Returns:
true if this category is enabled for INFO Level, false otherwise.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 243 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.scheduler.singledb.SingleDBPessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb0.RAIDb0PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleReadRequest(), and org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleReadRequest().

00244   {
00245     return log4jLogger.isEnabledFor(Priority.WARN);
00246   }

void org.objectweb.cjdbc.common.log.Trace.warn Object  message,
Throwable  error
 

Logs a message object with the WARN Level including the stack trace of the Throwableerror passed as parameter.

Parameters:
message the message object to log.
error the exception to log, including its stack trace.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 173 of file Trace.java.

00174   {
00175     log4jLogger.warn(message, error);
00176   }

void org.objectweb.cjdbc.common.log.Trace.warn Object  message  ) 
 

Logs a message object with the WARN Level.

Parameters:
message the message object to log.

Reimplemented in org.objectweb.cjdbc.common.log.StaticDisabledLogger.

Definition at line 160 of file Trace.java.

Referenced by org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread.closeVirtualDatabase(), org.objectweb.cjdbc.controller.requestmanager.distributed.DistributedRequestManager.completeFailedOnAllBackends(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execDistributedWriteRequestWithKeys(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execDistributedWriteRequestWithKeys(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb2DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.requestmanager.distributed.RAIDb1DistributedRequestManager.execRemoteReadRequest(), org.objectweb.cjdbc.controller.connection.VariablePoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.RandomWaitPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.connection.FailFastPoolConnectionManager.getConnection(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageMultiThreaded(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.handleMessageSingleThreaded(), org.objectweb.cjdbc.controller.connection.AbstractPoolConnectionManager.initializeConnections(), org.objectweb.cjdbc.controller.virtualdatabase.protocol.VirtualDatabaseConfiguration.isCompatible(), org.objectweb.cjdbc.common.sql.metadata.MetadataContainer.isCompatible(), org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.joinGroup(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.processWriteNotify(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processWriteNotify(), org.objectweb.cjdbc.controller.scheduler.singledb.SingleDBPessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb0.RAIDb0PessimisticTransactionLevelScheduler.scheduleNonSuspendedWriteRequest(), org.objectweb.cjdbc.controller.scheduler.raidb2.RAIDb2QueryLevelScheduler.scheduleReadRequest(), org.objectweb.cjdbc.controller.scheduler.raidb1.RAIDb1QueryLevelScheduler.scheduleReadRequest(), and org.objectweb.cjdbc.controller.virtualdatabase.DistributedVirtualDatabase.viewAccepted().

00161   {
00162     log4jLogger.warn(message);
00163   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:01:43 2005 for C-JDBC by  doxygen 1.3.9.1