public class ExecuteJobHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExecuteJobHelper.ExceptionLoggingHandler |
Modifier and Type | Field and Description |
---|---|
static ExecuteJobHelper.ExceptionLoggingHandler |
LOGGING_HANDLER |
Constructor and Description |
---|
ExecuteJobHelper() |
Modifier and Type | Method and Description |
---|---|
protected static FailedJobListener |
createFailedJobListener(CommandExecutor commandExecutor,
Throwable exception,
String jobId) |
protected static SuccessfulJobListener |
createSuccessfulJobListener(CommandExecutor commandExecutor) |
static void |
executeJob(String jobId,
CommandExecutor commandExecutor) |
static void |
executeJob(String nextJobId,
CommandExecutor commandExecutor,
JobFailureCollector jobFailureCollector,
Command<Void> cmd) |
protected static void |
handleJobFailure(String nextJobId,
JobFailureCollector jobFailureCollector,
Throwable exception) |
protected static void |
invokeJobListener(CommandExecutor commandExecutor,
JobFailureCollector jobFailureCollector) |
public static ExecuteJobHelper.ExceptionLoggingHandler LOGGING_HANDLER
public static void executeJob(String jobId, CommandExecutor commandExecutor)
public static void executeJob(String nextJobId, CommandExecutor commandExecutor, JobFailureCollector jobFailureCollector, Command<Void> cmd)
protected static void invokeJobListener(CommandExecutor commandExecutor, JobFailureCollector jobFailureCollector)
protected static void handleJobFailure(String nextJobId, JobFailureCollector jobFailureCollector, Throwable exception)
protected static FailedJobListener createFailedJobListener(CommandExecutor commandExecutor, Throwable exception, String jobId)
protected static SuccessfulJobListener createSuccessfulJobListener(CommandExecutor commandExecutor)
Copyright © 2019. All rights reserved.