Interface ComponentRestartPolicy
- All Known Implementing Classes:
AlwaysRestartPolicy,NeverRestartPolicy,OnFailureRestartPolicy
public interface ComponentRestartPolicy
Interface for Component Restart policies.
Which is used to make decisions on termination/restart of components and
their instances.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowContainerRetriesForInstance(ComponentInstance componentInstance) booleanbooleanhasCompleted(Component component) booleanhasCompletedSuccessfully(Component component) booleanbooleanisReadyForDownStream(Component component) booleanshouldRelaunchInstance(ComponentInstance componentInstance, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus) booleanshouldTerminate(Component component)
-
Method Details
-
isLongLived
boolean isLongLived() -
hasCompleted
-
hasCompletedSuccessfully
-
shouldRelaunchInstance
boolean shouldRelaunchInstance(ComponentInstance componentInstance, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus) -
isReadyForDownStream
-
allowUpgrades
boolean allowUpgrades() -
shouldTerminate
-
allowContainerRetriesForInstance
-