public final class ContextManager extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down.
|
boolean |
contextStackIsEmpty() |
Collection<ReefServiceProtos.ContextStatusProto> |
getContextStatusCollection() |
Optional<ReefServiceProtos.TaskStatusProto> |
getTaskStatus() |
void |
handleContextControlProtocol(EvaluatorRuntimeProtocol.ContextControlProto controlMessage)
Processes the given ContextControlProto to launch / close / suspend Tasks and Contexts.
|
void |
start()
Start the context manager.
|
public void start() throws ContextClientCodeException
ContextClientCodeException - if the root context can't be instantiated.public void close()
close in interface AutoCloseablepublic boolean contextStackIsEmpty()
public void handleContextControlProtocol(EvaluatorRuntimeProtocol.ContextControlProto controlMessage)
This also triggers the HeartBeatManager to send a heartbeat with the result of this operation.
controlMessage - the message to processpublic Optional<ReefServiceProtos.TaskStatusProto> getTaskStatus()
public Collection<ReefServiceProtos.ContextStatusProto> getContextStatusCollection()
Copyright © 2017 The Apache Software Foundation. All rights reserved.