public class ErrorWriterBatch extends java.lang.Object implements ErrorWriter, BatchPrimitives.OutputWriter
| Modifier and Type | Field and Description |
|---|---|
private ClientExports |
client
Client exports access.
|
| Constructor and Description |
|---|
ErrorWriterBatch(ClientExports client)
The only constructor used to create error writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayError(java.lang.String errmsg,
boolean noMessageBox,
java.lang.String[] stack,
boolean logCallStack,
boolean isFromLogManager)
Displays error message in batch mode.
|
void |
displayErrorRedirected(java.lang.String errmsg,
boolean logCallStack)
Displays error message using currently installed writer implementation.
|
void |
displayOutput(java.lang.String output)
Displays messages to stdout.
|
void |
displayWarning(java.lang.String wrnmsg)
Displays warning message using currently installed writer implementation.
|
private boolean |
isBatchInBackground()
Checks if the client is running in batch background mode.
|
boolean |
isInBatchMode()
Checks if the client is running in batch mode.
|
void |
message(java.lang.String errmsg)
Displays error message in bach mode.
|
void |
messageBox(java.lang.String masterMsg,
java.lang.String title,
boolean asInBatch)
Displays error message box with title using currently installed writer implementation.
|
void |
pause()
Implements pause processing in batch mode.
|
void |
stopBatchSession()
Stops the associated client session by generating UnstoppableExitException.
|
private ClientExports client
public ErrorWriterBatch(ClientExports client)
client - The client instance associated with writer.public void displayError(java.lang.String errmsg,
boolean noMessageBox,
java.lang.String[] stack,
boolean logCallStack,
boolean isFromLogManager)
displayError in interface ErrorWritererrmsg - Text of the message to display.noMessageBox - Not used.stack - Progress stack trace.logCallStack - Add call stack to log. false when ALERT_BOX message.isFromLogManager - Flag to indicate the error comes from LOG-MANAGER.public void displayWarning(java.lang.String wrnmsg)
displayWarning in interface ErrorWriterwrnmsg - Text of the message to display.public void displayErrorRedirected(java.lang.String errmsg,
boolean logCallStack)
displayErrorRedirected in interface ErrorWritererrmsg - Text of the message to display.logCallStack - Add call stack to log. false when ALERT_BOX message.public boolean isInBatchMode()
isInBatchMode in interface ErrorWritertrue for batch mode, false otherwise.public void message(java.lang.String errmsg)
message in interface ErrorWritererrmsg - Text of the message to display.public void messageBox(java.lang.String masterMsg,
java.lang.String title,
boolean asInBatch)
messageBox in interface ErrorWritermasterMsg - Text of the message to display.title - The title for the message box to display.asInBatch - treat redirected output like in batch mode (no dialogs)public void pause()
pause in interface ErrorWriterpublic void stopBatchSession()
stopBatchSession in interface ErrorWriterpublic void displayOutput(java.lang.String output)
displayError(String, boolean, String[], boolean, boolean), but not error
related.displayOutput in interface BatchPrimitives.OutputWriteroutput - Text of the message to display.private boolean isBatchInBackground()
true for background mode, false otherwise.