Package org.jboss.as.cli.impl
Class CommandExecutor
- java.lang.Object
-
- org.jboss.as.cli.impl.CommandExecutor
-
public class CommandExecutor extends Object
Implement the timeout logic when executing commands. Public for testing purpose.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCommandExecutor.Executablestatic interfaceCommandExecutor.ExecutableBuilderclassCommandExecutor.TimeoutCommandContext
-
Constructor Summary
Constructors Constructor Description CommandExecutor(CommandContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(CommandHandler handler, int timeout, TimeUnit unit)Future<?>getLastTask()
-
-
-
Constructor Detail
-
CommandExecutor
public CommandExecutor(CommandContext ctx)
-
-
Method Detail
-
execute
public void execute(CommandHandler handler, int timeout, TimeUnit unit) throws CommandLineException, InterruptedException, ExecutionException, TimeoutException
-
getLastTask
public Future<?> getLastTask()
-
-