public class CommandExecutorService extends Object implements BootService, CommandExecutor
execute(BaseCommand) and it will routes the
command to corresponding executor.
Registering command executor for new command in commandExecutorMap
is required to support new command.| Constructor and Description |
|---|
CommandExecutorService() |
| Modifier and Type | Method and Description |
|---|---|
void |
boot() |
void |
execute(BaseCommand command) |
void |
onComplete() |
void |
prepare() |
void |
shutdown() |
public void prepare()
throws Throwable
prepare in interface BootServiceThrowablepublic void boot()
throws Throwable
boot in interface BootServiceThrowablepublic void onComplete()
throws Throwable
onComplete in interface BootServiceThrowablepublic void shutdown()
throws Throwable
shutdown in interface BootServiceThrowablepublic void execute(BaseCommand command) throws CommandExecutionException
execute in interface CommandExecutorcommand - the command that is to be executedCommandExecutionException - when the executor failed to execute the commandCopyright © 2019 The Apache Software Foundation. All rights reserved.