public class ExecuteJobHelper extends Object
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 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 © 2017. All rights reserved.