public class Agent
extends com.google.common.util.concurrent.AbstractIdleService
| Modifier and Type | Field and Description |
|---|---|
static Map<com.spotify.helios.common.descriptors.JobId,Execution> |
EMPTY_EXECUTIONS |
| Constructor and Description |
|---|
Agent(AgentModel model,
SupervisorFactory supervisorFactory,
ReactorFactory reactorFactory,
PersistentAtomicReference<Map<com.spotify.helios.common.descriptors.JobId,Execution>> executions,
PortAllocator portAllocator,
Reaper reaper)
Create a new agent.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
shutDown() |
protected void |
startUp() |
public static final Map<com.spotify.helios.common.descriptors.JobId,Execution> EMPTY_EXECUTIONS
public Agent(AgentModel model, SupervisorFactory supervisorFactory, ReactorFactory reactorFactory, PersistentAtomicReference<Map<com.spotify.helios.common.descriptors.JobId,Execution>> executions, PortAllocator portAllocator, Reaper reaper)
model - The model.supervisorFactory - The factory to use for creating supervisors.reactorFactory - The factory to use for creating reactors.executions - A persistent map of executions.portAllocator - Allocator for job ports.reaper - The reaper.Copyright © 2017. All rights reserved.