public class LocalAgentLauncherImpl extends java.lang.Object implements AgentLauncher
AgentLauncher which launched Agent instances on the local Genie hardware.| Constructor and Description |
|---|
LocalAgentLauncherImpl(GenieWebHostInfo hostInfo,
GenieWebRpcInfo rpcInfo,
DataServices dataServices,
LocalAgentLauncherProperties launcherProperties,
ExecutorFactory executorFactory,
io.micrometer.core.instrument.MeterRegistry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.actuate.health.Health |
health() |
java.util.Optional<com.fasterxml.jackson.databind.JsonNode> |
launchAgent(@Valid ResolvedJob resolvedJob,
com.fasterxml.jackson.databind.JsonNode requestedLauncherExt)
Launch an agent to execute the given
ResolvedJob information. |
public LocalAgentLauncherImpl(GenieWebHostInfo hostInfo, GenieWebRpcInfo rpcInfo, DataServices dataServices, LocalAgentLauncherProperties launcherProperties, ExecutorFactory executorFactory, io.micrometer.core.instrument.MeterRegistry registry)
hostInfo - The GenieWebHostInfo instancerpcInfo - The GenieWebRpcInfo instancedataServices - The DataServices encapsulation instance to uselauncherProperties - The properties from the configuration that control agent behaviorexecutorFactory - A ExecutorFactory to create Executor
instancesregistry - Metrics repositorypublic java.util.Optional<com.fasterxml.jackson.databind.JsonNode> launchAgent(@Valid
@Valid ResolvedJob resolvedJob,
@Nullable
com.fasterxml.jackson.databind.JsonNode requestedLauncherExt)
throws AgentLaunchException
ResolvedJob information.launchAgent in interface AgentLauncherresolvedJob - The ResolvedJob information for the agent to act onrequestedLauncherExt - The launcher requested extension, or nullAgentLaunchException - For any error launching an Agent instance to run the jobpublic org.springframework.boot.actuate.health.Health health()
health in interface org.springframework.boot.actuate.health.HealthIndicator