Package io.vertx.core.spi.launcher
Class ExecutionContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- io.vertx.core.spi.launcher.ExecutionContext
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class ExecutionContext extends HashMap<String,Object>
The execution context contains various information on the execution.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(Command command, io.vertx.core.impl.launcher.VertxCommandLauncher launcher, CommandLine commandLine)
Creates a new instance ofExecutionContext
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CLI
cli()
Command
command()
CommandLine
commandLine()
void
execute(String command, String... args)
Executes another command.PrintStream
getPrintStream()
io.vertx.core.impl.launcher.VertxCommandLauncher
launcher()
Object
main()
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(Command command, io.vertx.core.impl.launcher.VertxCommandLauncher launcher, CommandLine commandLine)
Creates a new instance ofExecutionContext
.- Parameters:
command
- the command instance that is executedlauncher
- the launcher classcommandLine
- the command line
-
-
Method Detail
-
command
public Command command()
- Returns:
- the command line object.
-
launcher
public io.vertx.core.impl.launcher.VertxCommandLauncher launcher()
- Returns:
- the launcher.
-
commandLine
public CommandLine commandLine()
- Returns:
- the
CommandLine
.
-
execute
public void execute(String command, String... args)
Executes another command.- Parameters:
command
- the command nameargs
- the arguments
-
main
public Object main()
- Returns:
- the
Main-Class
object.
-
getPrintStream
public PrintStream getPrintStream()
- Returns:
- the
PrintStream
on which command can write.
-
-