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,
JobSearchService jobSearchService,
LocalAgentLauncherProperties launcherProperties,
ExecutorFactory executorFactory,
io.micrometer.core.instrument.MeterRegistry registry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
launchAgent(@Valid ResolvedJob resolvedJob)
Launch an agent to execute the given
ResolvedJob information. |
public LocalAgentLauncherImpl(GenieWebHostInfo hostInfo, GenieWebRpcInfo rpcInfo, JobSearchService jobSearchService, LocalAgentLauncherProperties launcherProperties, ExecutorFactory executorFactory, io.micrometer.core.instrument.MeterRegistry registry)
hostInfo
- The GenieWebHostInfo
instancerpcInfo
- The GenieWebRpcInfo
instancejobSearchService
- The JobSearchService
used to get metrics about the jobs on this nodelauncherProperties
- The properties from the configuration that control agent behaviorexecutorFactory
- A ExecutorFactory
to create Executor
instancesregistry
- Metrics repositorypublic void launchAgent(@Valid @Valid ResolvedJob resolvedJob) throws AgentLaunchException
ResolvedJob
information.launchAgent
in interface AgentLauncher
resolvedJob
- The ResolvedJob
information for the agent to act onAgentLaunchException
- For any error launching an Agent instance to run the job