public class ConsoleUIService extends AbstractExtensibleObject implements UIService
UIService implementation that sends messages to stdout and stderr.PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED| Constructor and Description |
|---|
ConsoleUIService() |
| Modifier and Type | Method and Description |
|---|---|
PrintStream |
getErrorStream() |
boolean |
getOutputStackTraces() |
PrintStream |
getOutputStream() |
int |
getPriority()
Returns
Plugin.PRIORITY_NOT_APPLICABLE because it must be manually configured as needed |
void |
sendErrorMessage(String message)
Send an "error" message to the user.
|
void |
sendErrorMessage(String message,
Throwable exception)
Send an "error" message to the user along with a stacktrace.
|
void |
sendMessage(String message)
Send a "normal" message to the user.
|
void |
setErrorStream(PrintStream errorStream) |
void |
setOutputStackTraces(boolean outputStackTraces)
Set to true to output stacktraces.
|
void |
setOutputStream(PrintStream outputStream) |
clone, describe, equals, get, get, get, getAttributes, getFieldValue, getObjectMetaData, getValuePath, has, hashCode, set, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, describe, get, get, getAttributes, getObjectMetaData, getValuePath, has, setpublic int getPriority()
Plugin.PRIORITY_NOT_APPLICABLE because it must be manually configured as neededgetPriority in interface UIServicepublic void sendMessage(String message)
UIServicesendMessage in interface UIServicepublic void sendErrorMessage(String message)
UIServicesendErrorMessage in interface UIServicepublic void sendErrorMessage(String message, Throwable exception)
UIServicesendErrorMessage in interface UIServicepublic PrintStream getOutputStream()
public void setOutputStream(PrintStream outputStream)
public PrintStream getErrorStream()
public void setErrorStream(PrintStream errorStream)
public boolean getOutputStackTraces()
public void setOutputStackTraces(boolean outputStackTraces)
Copyright © 2020 Liquibase.org. All rights reserved.