|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.diagnostic.reporter.Reporter
public class Reporter
Manages error reporting. Handles line wrapping for command consoles, and manages event logs for UI reporting.
Field Summary | |
---|---|
static int |
INDENT1
|
static int |
LINEWIDTH
|
Constructor Summary | |
---|---|
Reporter()
|
Method Summary | |
---|---|
static EventLog[] |
getEventLogReport()
Returns current report as an array list of event objects |
static java.lang.String[] |
getReport()
Returns current report as a string array |
static void |
linewrap(boolean bSystemOut,
java.lang.String line,
int width,
int indent)
Formats strings into N-char chunks with indent; breaks on word boundary |
static void |
log(boolean bSystemOut,
java.lang.String line)
Simply logs the string to the output. |
static void |
LogAndWrite(java.lang.String msg)
Both write to system out and log to spy. |
static void |
LogAndWriteError(java.lang.String msg)
Both write to system out and log to spy (error version). |
static void |
LogAndWriteError(java.lang.String msg,
XPException e)
Both write to system out and log to spy (error version). |
static void |
LogAndWriteFatal(java.lang.String msg)
Both write to system out and log to spy (error version). |
static void |
logEvent(int taskID,
int stepID,
java.lang.String taskName,
java.lang.String platformName,
java.lang.String errorMessage,
java.lang.String errorDescription,
java.lang.String exceptionRecommendation,
ReturnValue retVal)
Event logger. |
static void |
logNoIndent(boolean bSystemOut,
java.lang.String line)
Simply logs the string to the output. |
static void |
report(boolean bSystemOut,
int taskID,
int stepID,
java.lang.String taskName,
Platform platform,
ReturnValue retval,
IMessage msgClass)
Outputs recommendations with descriptions to the console. |
static void |
setEventLogReport(EventLog[] eventVector,
XPArrayList reportLog)
Overrides existing event and report logs and replaces them with new ones. |
static void |
SystemReport(java.lang.String line,
int width,
int indent,
java.lang.String frontMsg)
Formats strings into N-char chunks with indent; breaks on word boundary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LINEWIDTH
public static final int INDENT1
Constructor Detail |
---|
public Reporter()
Method Detail |
---|
public static void report(boolean bSystemOut, int taskID, int stepID, java.lang.String taskName, Platform platform, ReturnValue retval, IMessage msgClass)
bSystemOut:
- if true, logs more verboselypublic static void logNoIndent(boolean bSystemOut, java.lang.String line)
bSystemOut:
- if true, logs to stdout as wellline
- public static void log(boolean bSystemOut, java.lang.String line)
bSystemOut:
- if true, logs to stdout as wellline
- public static void logEvent(int taskID, int stepID, java.lang.String taskName, java.lang.String platformName, java.lang.String errorMessage, java.lang.String errorDescription, java.lang.String exceptionRecommendation, ReturnValue retVal)
public static void linewrap(boolean bSystemOut, java.lang.String line, int width, int indent)
line
- public static void SystemReport(java.lang.String line, int width, int indent, java.lang.String frontMsg)
line
- public static java.lang.String[] getReport()
public static EventLog[] getEventLogReport()
public static void LogAndWrite(java.lang.String msg)
msg
- public static void LogAndWriteError(java.lang.String msg)
msg
- public static void LogAndWriteError(java.lang.String msg, XPException e)
msg
- public static void LogAndWriteFatal(java.lang.String msg)
msg
- public static void setEventLogReport(EventLog[] eventVector, XPArrayList reportLog)
eventVector
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |