public interface AgentLauncher
extends org.springframework.boot.actuate.health.HealthIndicator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LAUNCH_TIMER
Shared name of a timer that can be used by launchers to record how long it took them to perform their
respective launch.
|
static java.lang.String |
LAUNCHER_CLASS_EXT_FIELD
Shared key representing the class that key for the Launcher Ext context the API can return.
|
static java.lang.String |
LAUNCHER_CLASS_KEY
Shared key for a tag that can be added to the timer metric to add the implementation class in order to aid in
adding a convenient dimension.
|
static java.lang.String |
SOURCE_HOST_EXT_FIELD
Shared key representing the hostname of the Genie server the Agent Launcher was executed on.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<com.fasterxml.jackson.databind.JsonNode> |
launchAgent(ResolvedJob resolvedJob,
com.fasterxml.jackson.databind.JsonNode requestedLauncherExt)
Launch an agent to execute the given
ResolvedJob information. |
static final java.lang.String LAUNCH_TIMER
static final java.lang.String LAUNCHER_CLASS_KEY
LAUNCH_TIMER,
Constant Field Valuesstatic final java.lang.String LAUNCHER_CLASS_EXT_FIELD
static final java.lang.String SOURCE_HOST_EXT_FIELD
java.util.Optional<com.fasterxml.jackson.databind.JsonNode> launchAgent(ResolvedJob resolvedJob, @Nullable com.fasterxml.jackson.databind.JsonNode requestedLauncherExt) throws AgentLaunchException
ResolvedJob information.resolvedJob - The ResolvedJob information for the agent to act onrequestedLauncherExt - The launcher requested extension, or nullJsonNode with the launcher context about the launched jobAgentLaunchException - For any error launching an Agent instance to run the job