public class SupervisorStateManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SupervisorStateManager.BasicState |
static class |
SupervisorStateManager.ExceptionEvent |
static interface |
SupervisorStateManager.State |
| Constructor and Description |
|---|
SupervisorStateManager(SupervisorStateManagerConfig supervisorStateManagerConfig,
boolean suspended) |
| Modifier and Type | Method and Description |
|---|---|
protected SupervisorStateManager.ExceptionEvent |
buildExceptionEvent(Throwable t) |
List<SupervisorStateManager.ExceptionEvent> |
getExceptionEvents() |
protected Deque<SupervisorStateManager.ExceptionEvent> |
getRecentEventsQueue() |
protected SupervisorStateManager.State |
getSpecificUnhealthySupervisorState() |
SupervisorStateManager.State |
getSupervisorState() |
boolean |
isAtLeastOneSuccessfulRun() |
boolean |
isHealthy() |
boolean |
isSteadyState() |
protected boolean |
isStoreStackTrace() |
void |
markRunFinished() |
void |
maybeSetState(SupervisorStateManager.State proposedState)
Certain states are only valid if the supervisor hasn't had a successful iteration.
|
void |
recordCompletedTaskState(TaskState state) |
void |
recordThrowableEvent(Throwable t) |
public SupervisorStateManager(SupervisorStateManagerConfig supervisorStateManagerConfig, boolean suspended)
public void maybeSetState(SupervisorStateManager.State proposedState)
public void recordThrowableEvent(Throwable t)
public void recordCompletedTaskState(TaskState state)
public void markRunFinished()
public List<SupervisorStateManager.ExceptionEvent> getExceptionEvents()
public SupervisorStateManager.State getSupervisorState()
public boolean isHealthy()
public boolean isSteadyState()
public boolean isAtLeastOneSuccessfulRun()
protected Deque<SupervisorStateManager.ExceptionEvent> getRecentEventsQueue()
protected boolean isStoreStackTrace()
protected SupervisorStateManager.State getSpecificUnhealthySupervisorState()
protected SupervisorStateManager.ExceptionEvent buildExceptionEvent(Throwable t)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.