public class Supervisor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Supervisor.Builder |
static interface |
Supervisor.Listener |
| Constructor and Description |
|---|
Supervisor(Supervisor.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this supervisor.
|
String |
containerId()
Get the current container id
|
boolean |
isDone()
Check whether the last start/stop command is done.
|
boolean |
isStarting()
Check if the current command is start.
|
boolean |
isStopping()
Check if the current command is stop.
|
void |
join()
Wait for supervisor to stop after closing it.
|
static Supervisor.Builder |
newBuilder() |
void |
setGoal(com.spotify.helios.common.descriptors.Goal goal) |
String |
toString() |
public Supervisor(Supervisor.Builder builder)
public void setGoal(com.spotify.helios.common.descriptors.Goal goal)
public void close()
public void join()
public boolean isStarting()
public boolean isStopping()
public boolean isDone()
public String containerId()
public static Supervisor.Builder newBuilder()
Copyright © 2017. All rights reserved.