public final class ReefEventStateManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
ReefEventStateManager.ActiveContextStateHandler
Receive notification that a new Context is available.
|
class |
ReefEventStateManager.AllocatedEvaluatorStateHandler
Receive notification that an Evaluator had been allocated.
|
class |
ReefEventStateManager.ClientMessageStateHandler
Receive notification from the client.
|
class |
ReefEventStateManager.DriverRestartActiveContextStateHandler
Receive notification that a new Context is available.
|
class |
ReefEventStateManager.DriverRestartHandler
Job Driver has been restarted.
|
class |
ReefEventStateManager.DriverRestartTaskRunningStateHandler
Receive event during driver restart that a task is running in previous evaluator.
|
class |
ReefEventStateManager.StartStateHandler
Job Driver is ready and the clock is set up.
|
class |
ReefEventStateManager.StopStateHandler
Job driver stopped, log the stop time.
|
class |
ReefEventStateManager.TaskRunningStateHandler
Receive event when task is running.
|
Constructor and Description |
---|
ReefEventStateManager(RemoteManager remoteManager,
DriverStatusManager driverStatusManager)
ReefEventStateManager that keeps the states of Reef components.
|
Modifier and Type | Method and Description |
---|---|
EvaluatorDescriptor |
get(String key)
get a value from evaluators by key.
|
Map<String,ActiveContext> |
getContexts()
get a map of contexts.
|
String |
getDriverEndpointIdentifier()
get driver endpoint identifier.
|
EvaluatorDescriptor |
getEvaluatorDescriptor(String evaluatorId)
getEvaluatorDescriptor.
|
NodeDescriptor |
getEvaluatorNodeDescriptor(String evaluatorId)
get Evaluator NodeDescriptor.
|
Map<String,EvaluatorDescriptor> |
getEvaluators()
get evaluator map.
|
List<AvroReefServiceInfo> |
getServicesInfo() |
String |
getStartTime()
get start time.
|
String |
getStopTime()
get stop time.
|
void |
onClientKill()
Kill driver by calling onComplete() .
|
void |
put(String key,
EvaluatorDescriptor value)
pus a entry to evaluators.
|
void |
registerServiceInfo(AvroReefServiceInfo serviceInfo) |
@Inject public ReefEventStateManager(RemoteManager remoteManager, DriverStatusManager driverStatusManager)
public String getStartTime()
public String getStopTime()
public Map<String,EvaluatorDescriptor> getEvaluators()
public String getDriverEndpointIdentifier()
public List<AvroReefServiceInfo> getServicesInfo()
public void registerServiceInfo(AvroReefServiceInfo serviceInfo)
public Map<String,ActiveContext> getContexts()
public void put(String key, EvaluatorDescriptor value)
key
- value
- public EvaluatorDescriptor get(String key)
key
- public EvaluatorDescriptor getEvaluatorDescriptor(String evaluatorId)
evaluatorId
- public NodeDescriptor getEvaluatorNodeDescriptor(String evaluatorId)
evaluatorId
- public void onClientKill()
Copyright © 2015 The Apache Software Foundation. All rights reserved.