public class PersistentLaunchRecorder extends java.lang.Object implements OperationRecorder
| Constructor and Description |
|---|
PersistentLaunchRecorder(StateStore stateStore,
ServiceSpec serviceSpec) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.Optional<PodInstance> |
getPodInstance(Protos.TaskInfo taskInfo) |
void |
record(OfferRecommendation offerRecommendation) |
(package private) void |
updateTaskResourcesWithinResourceSet(PodInstance podInstance,
Protos.TaskInfo taskInfo)
This method keeps the resources associated with tasks in the state store up to date, when a task which shares
their resource-set is launched.
|
public PersistentLaunchRecorder(StateStore stateStore, ServiceSpec serviceSpec)
public void record(OfferRecommendation offerRecommendation) throws java.lang.Exception
record in interface OperationRecorderjava.lang.Exceptionjava.util.Optional<PodInstance> getPodInstance(Protos.TaskInfo taskInfo) throws TaskException
TaskExceptionvoid updateTaskResourcesWithinResourceSet(PodInstance podInstance, Protos.TaskInfo taskInfo)
podInstance - the parent pod associated with the task being launchedtaskInfo - the task being launched