|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.logging.messaging.impl.CommandLineMessageDirector
public class CommandLineMessageDirector
An implementation of the LgMessageDirectorIF that routes the messages to the command line. Also prints messages to a log4j logger (if one is provided)
Constructor Summary | |
---|---|
CommandLineMessageDirector()
Instantiates a new command line message director. |
|
CommandLineMessageDirector(java.lang.String logName)
Construct a command line message director that will also write to a log4j logger of the given name. |
|
CommandLineMessageDirector(java.lang.String logName,
boolean showDebug)
Construct a command line message director that will also write to a log4j logger of the given name. |
Method Summary | |
---|---|
void |
busy()
Output to indicate system is busy. |
java.lang.String |
debug(java.lang.String message)
Take a debug message. |
java.lang.String |
error(java.lang.String message)
Display a non-fatal error to the user. |
java.lang.String |
error(java.lang.String message,
java.lang.Throwable sourceException)
Display a non-fatal error to the user |
java.lang.String |
fatal(java.lang.String message)
Display a fatal error to the user. |
java.lang.String |
fatal(java.lang.String message,
java.lang.Throwable sourceException)
Display a fatal error to the user. |
void |
fatalAndThrowException(java.lang.String message)
Display a fatal error to the user - and then throw an exception. |
void |
fatalAndThrowException(java.lang.String message,
java.lang.Throwable sourceException)
Display a fatal error to the user - and then throw an exception. |
java.lang.String |
info(java.lang.String message)
Displays a status type of message (not an error or a warning) |
java.lang.String |
warn(java.lang.String message)
Display a warning to the user. |
java.lang.String |
warn(java.lang.String message,
java.lang.Throwable sourceException)
Display a warning to the user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineMessageDirector(java.lang.String logName, boolean showDebug)
logName
- the log nameshowDebug
- should debug messages be printed to the screen.public CommandLineMessageDirector(java.lang.String logName)
logName
- the log namepublic CommandLineMessageDirector()
Method Detail |
---|
public void busy()
busy
in interface LgMessageDirectorIF
public java.lang.String error(java.lang.String message)
LgMessageDirectorIF
error
in interface LgMessageDirectorIF
public java.lang.String error(java.lang.String message, java.lang.Throwable sourceException)
LgMessageDirectorIF
error
in interface LgMessageDirectorIF
sourceException
- The source exception that caused the error.public java.lang.String fatal(java.lang.String message)
LgMessageDirectorIF
fatal
in interface LgMessageDirectorIF
public java.lang.String fatal(java.lang.String message, java.lang.Throwable sourceException)
LgMessageDirectorIF
fatal
in interface LgMessageDirectorIF
sourceException
- The source exception that caused the error.
public void fatalAndThrowException(java.lang.String message) throws java.lang.Exception
LgMessageDirectorIF
fatalAndThrowException
in interface LgMessageDirectorIF
java.lang.Exception
public void fatalAndThrowException(java.lang.String message, java.lang.Throwable sourceException) throws java.lang.Exception
LgMessageDirectorIF
fatalAndThrowException
in interface LgMessageDirectorIF
sourceException
- The source exception that caused the error.
java.lang.Exception
public java.lang.String info(java.lang.String message)
LgMessageDirectorIF
info
in interface LgMessageDirectorIF
public java.lang.String warn(java.lang.String message)
LgMessageDirectorIF
warn
in interface LgMessageDirectorIF
public java.lang.String warn(java.lang.String message, java.lang.Throwable sourceException)
LgMessageDirectorIF
warn
in interface LgMessageDirectorIF
sourceException
- The source exception that caused the warning
public java.lang.String debug(java.lang.String message)
LgMessageDirectorIF
debug
in interface LgMessageDirectorIF
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |