| Modifier and Type | Class and Description |
|---|---|
static class |
LegacyReport.Initializer
An initializer for
Report.Delegate. |
| Modifier and Type | Field and Description |
|---|---|
static ReportApi |
API
The API of this implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
error(String message)
Reports an error message.
|
static void |
error(String message,
Throwable throwable)
Reports an error message.
|
static void |
info(String message)
Reports an informative message.
|
static void |
info(String message,
Throwable throwable)
Reports an informative message.
|
static void |
setDelegate(Report.Delegate delegate)
Sets a custom implementation for the current thread.
|
static void |
warn(String message)
Reports a warning message.
|
static void |
warn(String message,
Throwable throwable)
Reports a warning message.
|
public static final ReportApi API
public static void setDelegate(Report.Delegate delegate)
delegate - the custom implementation, or null to unregister the implementationpublic static void info(String message)
@Sticky annotation to the operator method that using this.message - the messageReport.FailedException - if error was occurred while reporting the messagepublic static void info(String message, Throwable throwable)
@Sticky annotation to the operator method that using this.message - the messagethrowable - the optional exception object (nullable)Report.FailedException - if error was occurred while reporting the messagepublic static void warn(String message)
@Sticky annotation to the operator method that using this.message - the messageReport.FailedException - if error was occurred while reporting the messagepublic static void warn(String message, Throwable throwable)
@Sticky annotation to the operator method that using this.message - the messagethrowable - the optional exception object (nullable)Report.FailedException - if error was occurred while reporting the messagepublic static void error(String message)
@Sticky annotation to the operator method that using this.
Please be careful that this method will NOT shutdown the running batch.
To shutdown the batch, throw an exception (RuntimeException) in operator methods.message - the messageReport.FailedException - if error was occurred while reporting the messagepublic static void error(String message, Throwable throwable)
@Sticky annotation to the operator method that using this.
Please be careful that this method will NOT shutdown the running batch.
To shutdown the batch, throw an exception (RuntimeException) in operator methods.message - the messagethrowable - the optional exception object (nullable)Report.FailedException - if error was occurred while reporting the messageCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.