public class SchedulerStateManagerAdaptor
extends java.lang.Object
Constructor and Description |
---|
SchedulerStateManagerAdaptor(IStateManager delegate,
int timeout)
Construct SchedulerStateManagerAdaptor providing only the
interfaces used by scheduler.
|
Modifier and Type | Method and Description |
---|---|
protected <V> V |
awaitResult(com.google.common.util.concurrent.ListenableFuture<V> future)
Waits for ListenableFuture to terminate.
|
protected <V> V |
awaitResult(com.google.common.util.concurrent.ListenableFuture<V> future,
int time,
java.util.concurrent.TimeUnit unit)
Waits for ListenableFuture to terminate.
|
java.lang.Boolean |
deleteExecutionState(java.lang.String topologyName)
Delete the execution state for the given topology
|
java.lang.Boolean |
deletePhysicalPlan(java.lang.String topologyName)
Delete the physical plan for the given topology
|
java.lang.Boolean |
deleteSchedulerLocation(java.lang.String topologyName)
Delete the scheduler location for the given topology
|
java.lang.Boolean |
deleteTMasterLocation(java.lang.String topologyName)
Delete the tmaster location for the given topology
|
java.lang.Boolean |
deleteTopology(java.lang.String topologyName)
Delete the topology definition for the given topology
|
ExecutionEnvironment.ExecutionState |
getExecutionState(java.lang.String topologyName)
Get the execution state for the given topology
|
PhysicalPlans.PhysicalPlan |
getPhysicalPlan(java.lang.String topologyName)
Get the physical plan for the given topology
|
Scheduler.SchedulerLocation |
getSchedulerLocation(java.lang.String topologyName)
Get the scheduler location for the given topology
|
TopologyMaster.TMasterLocation |
getTMasterLocation(java.lang.String topologyName)
Get the tmaster location for the given topology
|
java.lang.Boolean |
isTopologyRunning(java.lang.String topologyName)
Is the given topology in RUNNING state?
|
java.lang.Boolean |
setExecutionState(ExecutionEnvironment.ExecutionState executionState,
java.lang.String topologyName)
Set the execution state for the given topology
|
java.lang.Boolean |
setSchedulerLocation(Scheduler.SchedulerLocation location,
java.lang.String topologyName)
Set the scheduler location for the given topology
|
java.lang.Boolean |
setTopology(TopologyAPI.Topology topology,
java.lang.String topologyName)
Set the topology definition for the given topology
|
public SchedulerStateManagerAdaptor(IStateManager delegate, int timeout)
delegate
- an instance of IStateManager that is already initialized.
Noticed that the initialize and close of IStateManager is not in the
SchedulerStateManager. Users are restricted from using those interfaces
since it is upto the abstract scheduler to decide when to open and close.timeout
- the maximum time to wait in millisecondsprotected <V> V awaitResult(com.google.common.util.concurrent.ListenableFuture<V> future)
protected <V> V awaitResult(com.google.common.util.concurrent.ListenableFuture<V> future, int time, java.util.concurrent.TimeUnit unit)
public java.lang.Boolean isTopologyRunning(java.lang.String topologyName)
public java.lang.Boolean setExecutionState(ExecutionEnvironment.ExecutionState executionState, java.lang.String topologyName)
public java.lang.Boolean setTopology(TopologyAPI.Topology topology, java.lang.String topologyName)
topologyName
- the name of the topologypublic java.lang.Boolean setSchedulerLocation(Scheduler.SchedulerLocation location, java.lang.String topologyName)
public java.lang.Boolean deleteTMasterLocation(java.lang.String topologyName)
public java.lang.Boolean deleteExecutionState(java.lang.String topologyName)
public java.lang.Boolean deleteTopology(java.lang.String topologyName)
public java.lang.Boolean deletePhysicalPlan(java.lang.String topologyName)
public java.lang.Boolean deleteSchedulerLocation(java.lang.String topologyName)
public TopologyMaster.TMasterLocation getTMasterLocation(java.lang.String topologyName)
public Scheduler.SchedulerLocation getSchedulerLocation(java.lang.String topologyName)
public ExecutionEnvironment.ExecutionState getExecutionState(java.lang.String topologyName)
public PhysicalPlans.PhysicalPlan getPhysicalPlan(java.lang.String topologyName)