public class PodResource extends PrettyJsonResource
Constructor and Description |
---|
PodResource(StateStore stateStore,
java.lang.String serviceName,
TaskFailureListener taskFailureListener)
Creates a new instance which retrieves task/pod state from the provided
StateStore . |
Modifier and Type | Method and Description |
---|---|
Response |
getPodInfo(java.lang.String podInstanceName)
Produces the full information for a single pod instance.
|
Response |
getPods()
Produces a listing of all pod instance names.
|
Response |
getPodStatus(java.lang.String podInstanceName)
Produces the summary status of a single pod instance.
|
Response |
getPodStatuses()
Produces the summary statuses of all pod instances.
|
Response |
pausePod(java.lang.String podName,
java.lang.String bodyPayload)
Restarts a pod in a "paused" debug mode.
|
Response |
replacePod(java.lang.String name)
Replaces a pod instance with a new instance on a different agent.
|
Response |
restartPod(java.lang.String name)
Restarts a pod instance in-place.
|
Response |
resumePod(java.lang.String podName,
java.lang.String bodyPayload)
Restarts a pod in a normal state following a prior "pause" command.
|
void |
setTaskKiller(TaskKiller taskKiller)
Configures the
TaskKiller instance to be invoked when restart/replace operations are invoked. |
getContext
public PodResource(StateStore stateStore, java.lang.String serviceName, TaskFailureListener taskFailureListener)
StateStore
.public Response getPods()
public Response getPodStatuses()
public Response getPodStatus(java.lang.String podInstanceName)
public Response getPodInfo(java.lang.String podInstanceName)
public Response pausePod(java.lang.String podName, java.lang.String bodyPayload)
public Response resumePod(java.lang.String podName, java.lang.String bodyPayload)
public Response restartPod(java.lang.String name)
public Response replacePod(java.lang.String name)
public void setTaskKiller(TaskKiller taskKiller)
TaskKiller
instance to be invoked when restart/replace operations are invoked.