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 CLIcli()Commandcommand()CommandLinecommandLine()voidexecute(String command, String... args)Executes another command.PrintStreamgetPrintStream()io.vertx.core.impl.launcher.VertxCommandLauncherlauncher()Objectmain()-
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-Classobject.
-
getPrintStream
public PrintStream getPrintStream()
- Returns:
- the
PrintStreamon which command can write.
-
-