com.extrememessaging.ResponseMaster.monitor
Class DBLogger

java.lang.Object
  extended by com.extrememessaging.ResponseMaster.monitor.CMonitorBase
      extended by com.extrememessaging.ResponseMaster.monitor.DBLogger
All Implemented Interfaces:
IConfigurableItem, IMonitor

public class DBLogger
extends CMonitorBase

This class is used to log messages to a DB. It is currently not very flexible, and used only for internal Extreme-Messaging applications.


Constructor Summary
DBLogger()
           
 
Method Summary
 void Initialize(java.lang.String sFileName)
          Initialize using the parameter from the config file.
 void LogError(java.lang.String sMessage)
          Log an error
 void LogError(java.lang.String sMessage, java.lang.Throwable e)
          Log an error from a Throwable
 void LogSystem(java.lang.String sMessage)
          Log a system message
 void LogTrace(java.lang.String sMessage)
          Log a tracing message If the logging level is Errors or Warnings, this doesn't do anything
 void LogTrace(java.lang.String sMessage, java.lang.Throwable e)
          Log a tracing message from a Throwable If the logging level is Errors, this doesn't do anything
 void LogWarning(java.lang.String sMessage)
          Log a warning If the logging level is Errors, this doesn't do anything
 void LogWarning(java.lang.String sMessage, java.lang.Throwable e)
          Log a warning from a Throwable If the logging level is Errors, this doesn't do anything
 void MailboxEmpty(java.lang.String sMailboxName)
          This is fired every time we check the mailbox for messages, and we find that it is empty.
 void MailboxInitializationBegun(java.lang.String sMailboxName)
          The mailbox initialization process started for a particular mailbox New in build 627
 void MailboxInitializationFinished(java.lang.String sMailboxName)
          The mailbox initialization process completed for a particular mailbox New in build 627
 void MailboxShutdownBegun(java.lang.String sMailboxName)
          The mailbox shutdown process began for a particular mailbox New in build 627
 void MailboxShutdownFinished(java.lang.String sMailboxName)
          The mailbox shutdown process finished for a particular mailbox New in build 627
 void MessageProcessed(CMessage oMessage)
          A message was processed Changed in build 595
 void Shutdown()
          Cleanup any resources you allocated during construction or operation.
 
Methods inherited from class com.extrememessaging.ResponseMaster.monitor.CMonitorBase
CategoryDefinitionsLoaded, LoggingLevelFromString, LoggingLevelNameFromValue, MessageCategorized, MessageSkipped, ThreadKilled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBLogger

public DBLogger()
Method Detail

Initialize

public void Initialize(java.lang.String sFileName)
                throws ResponseMasterException
Description copied from interface: IConfigurableItem
Initialize using the parameter from the config file. Frequently, the parameter will be a file name

Specified by:
Initialize in interface IConfigurableItem
Overrides:
Initialize in class CMonitorBase
Throws:
ResponseMasterException

Shutdown

public void Shutdown()
Description copied from interface: IConfigurableItem
Cleanup any resources you allocated during construction or operation. After this is called, nothing else will be called, unless Initialize is called again. Note: Shutdown may be called more than once on the same object New in build 595.

Specified by:
Shutdown in interface IConfigurableItem
Overrides:
Shutdown in class CMonitorBase

LogError

public void LogError(java.lang.String sMessage)
Log an error

Specified by:
LogError in interface IMonitor
Overrides:
LogError in class CMonitorBase
Parameters:
sMessage - The message to log

LogError

public void LogError(java.lang.String sMessage,
                     java.lang.Throwable e)
Log an error from a Throwable

Specified by:
LogError in interface IMonitor
Overrides:
LogError in class CMonitorBase
Parameters:
sMessage - The message to log
e - The Throwable to log

LogWarning

public void LogWarning(java.lang.String sMessage)
Log a warning If the logging level is Errors, this doesn't do anything

Specified by:
LogWarning in interface IMonitor
Overrides:
LogWarning in class CMonitorBase
Parameters:
sMessage - The message to log

LogWarning

public void LogWarning(java.lang.String sMessage,
                       java.lang.Throwable e)
Log a warning from a Throwable If the logging level is Errors, this doesn't do anything

Specified by:
LogWarning in interface IMonitor
Overrides:
LogWarning in class CMonitorBase
Parameters:
sMessage - The message to log
e - The Throwable to log

LogTrace

public void LogTrace(java.lang.String sMessage)
Log a tracing message If the logging level is Errors or Warnings, this doesn't do anything

Specified by:
LogTrace in interface IMonitor
Overrides:
LogTrace in class CMonitorBase
Parameters:
sMessage - The message to log

LogTrace

public void LogTrace(java.lang.String sMessage,
                     java.lang.Throwable e)
Log a tracing message from a Throwable If the logging level is Errors, this doesn't do anything

Specified by:
LogTrace in interface IMonitor
Overrides:
LogTrace in class CMonitorBase
Parameters:
sMessage - The message to log
e - The Throwable to log

LogSystem

public void LogSystem(java.lang.String sMessage)
Log a system message

Specified by:
LogSystem in interface IMonitor
Overrides:
LogSystem in class CMonitorBase
Parameters:
sMessage - The message to log

MailboxInitializationBegun

public void MailboxInitializationBegun(java.lang.String sMailboxName)
Description copied from interface: IMonitor
The mailbox initialization process started for a particular mailbox New in build 627

Specified by:
MailboxInitializationBegun in interface IMonitor
Overrides:
MailboxInitializationBegun in class CMonitorBase
Parameters:
sMailboxName - The name of the mailbox

MailboxInitializationFinished

public void MailboxInitializationFinished(java.lang.String sMailboxName)
Description copied from interface: IMonitor
The mailbox initialization process completed for a particular mailbox New in build 627

Specified by:
MailboxInitializationFinished in interface IMonitor
Overrides:
MailboxInitializationFinished in class CMonitorBase
Parameters:
sMailboxName - The name of the mailbox

MailboxShutdownBegun

public void MailboxShutdownBegun(java.lang.String sMailboxName)
Description copied from interface: IMonitor
The mailbox shutdown process began for a particular mailbox New in build 627

Specified by:
MailboxShutdownBegun in interface IMonitor
Overrides:
MailboxShutdownBegun in class CMonitorBase
Parameters:
sMailboxName - The name of the mailbox

MailboxShutdownFinished

public void MailboxShutdownFinished(java.lang.String sMailboxName)
Description copied from interface: IMonitor
The mailbox shutdown process finished for a particular mailbox New in build 627

Specified by:
MailboxShutdownFinished in interface IMonitor
Overrides:
MailboxShutdownFinished in class CMonitorBase
Parameters:
sMailboxName - The name of the mailbox

MessageProcessed

public void MessageProcessed(CMessage oMessage)
Description copied from interface: IMonitor
A message was processed Changed in build 595

Specified by:
MessageProcessed in interface IMonitor
Overrides:
MessageProcessed in class CMonitorBase

MailboxEmpty

public void MailboxEmpty(java.lang.String sMailboxName)
Description copied from interface: IMonitor
This is fired every time we check the mailbox for messages, and we find that it is empty. Note: It can fire multiple times without the mailbox getting messages in between. New in build 627

Specified by:
MailboxEmpty in interface IMonitor
Overrides:
MailboxEmpty in class CMonitorBase
Parameters:
sMailboxName - The name of the mailbox