public class TaskMonitor extends Object implements TaskRunner.Listener, Closeable
TaskRunner, processing events into observations about the health of a task,
e.g. whether it's flapping etc. This information is published using the StatusUpdater and
a ThrottleState is made available for supervisors to act on.| Constructor and Description |
|---|
TaskMonitor(com.spotify.helios.common.descriptors.JobId jobId,
FlapController flapController,
StatusUpdater statusUpdater) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
created(String containerId) |
void |
creating() |
void |
exited(int code) |
void |
failed(Throwable th,
String containerError) |
void |
healthChecking() |
void |
pulled() |
void |
pullFailed() |
void |
pulling() |
void |
running() |
void |
started() |
void |
starting() |
com.spotify.helios.common.descriptors.ThrottleState |
throttle()
Get the current task throttle as derived from task runner events.
|
public TaskMonitor(com.spotify.helios.common.descriptors.JobId jobId, FlapController flapController, StatusUpdater statusUpdater)
public com.spotify.helios.common.descriptors.ThrottleState throttle()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void failed(Throwable th, String containerError)
failed in interface TaskRunner.Listenerpublic void pulling()
pulling in interface TaskRunner.Listenerpublic void pulled()
pulled in interface TaskRunner.Listenerpublic void pullFailed()
pullFailed in interface TaskRunner.Listenerpublic void creating()
creating in interface TaskRunner.Listenerpublic void created(String containerId)
created in interface TaskRunner.Listenerpublic void starting()
starting in interface TaskRunner.Listenerpublic void started()
started in interface TaskRunner.Listenerpublic void healthChecking()
healthChecking in interface TaskRunner.Listenerpublic void running()
running in interface TaskRunner.Listenerpublic void exited(int code)
exited in interface TaskRunner.ListenerCopyright © 2017. All rights reserved.