public interface AgentModel
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AgentModel.Listener
A listener for changes to the set of tasks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AgentModel.Listener listener)
Add a listener for changes to the set of tasks.
|
Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.Task> |
getTasks()
Get a map of tasks.
|
com.spotify.helios.common.descriptors.TaskStatus |
getTaskStatus(com.spotify.helios.common.descriptors.JobId jobId)
Get registered task status.
|
Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.TaskStatus> |
getTaskStatuses()
Get a map of the task statuses.
|
void |
removeListener(AgentModel.Listener listener)
Remove a listener.
|
void |
removeTaskStatus(com.spotify.helios.common.descriptors.JobId jobId)
Remove a task status.
|
void |
setTaskStatus(com.spotify.helios.common.descriptors.JobId jobId,
com.spotify.helios.common.descriptors.TaskStatus status)
Register task status.
|
Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.Task> getTasks()
Map<com.spotify.helios.common.descriptors.JobId,com.spotify.helios.common.descriptors.TaskStatus> getTaskStatuses()
void setTaskStatus(com.spotify.helios.common.descriptors.JobId jobId, com.spotify.helios.common.descriptors.TaskStatus status) throws InterruptedException
jobId - The job ID.status - The job state.InterruptedException - If the thread is interrupted.com.spotify.helios.common.descriptors.TaskStatus getTaskStatus(com.spotify.helios.common.descriptors.JobId jobId)
jobId - The job ID.void removeTaskStatus(com.spotify.helios.common.descriptors.JobId jobId) throws InterruptedException
jobId - The job id.InterruptedException - If the thread is interrupted.void addListener(AgentModel.Listener listener)
listener - A listener that will be called when the set of tasks changes.AgentModel.Listenervoid removeListener(AgentModel.Listener listener)
listener - The listener to remove.addListener(Listener)Copyright © 2017. All rights reserved.