public class NullStateManager extends java.lang.Object implements IStateManager
Modifier and Type | Field and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<java.lang.Boolean> |
nullFuture |
Constructor and Description |
---|
NullStateManager() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is to for disposing or cleaning up any internal state accumulated by
the StateManager
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
deleteExecutionState(java.lang.String topologyName)
Delete the execution state for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
deletePhysicalPlan(java.lang.String topologyName)
Delete the physical plan for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
deleteSchedulerLocation(java.lang.String topologyName)
Delete the scheduler location for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
deleteTMasterLocation(java.lang.String topologyName)
Delete the tmaster location for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
deleteTopology(java.lang.String topologyName)
Delete the topology definition for the given topology
|
com.google.common.util.concurrent.ListenableFuture<ExecutionEnvironment.ExecutionState> |
getExecutionState(WatchCallback watcher,
java.lang.String topologyName)
Get the execution state for the given topology
|
com.google.common.util.concurrent.ListenableFuture<PhysicalPlans.PhysicalPlan> |
getPhysicalPlan(WatchCallback watcher,
java.lang.String topologyName)
Get the physical plan for the given topology
|
com.google.common.util.concurrent.ListenableFuture<Scheduler.SchedulerLocation> |
getSchedulerLocation(WatchCallback watcher,
java.lang.String topologyName)
Get the scheduler location for the given topology
|
com.google.common.util.concurrent.ListenableFuture<TopologyMaster.TMasterLocation> |
getTMasterLocation(WatchCallback watcher,
java.lang.String topologyName)
Get the tmaster location for the given topology
|
com.google.common.util.concurrent.ListenableFuture<TopologyAPI.Topology> |
getTopology(WatchCallback watcher,
java.lang.String topologyName)
Get the topology definition for the given topology
|
void |
initialize(Config config)
Initialize StateManager with the incoming context.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
isTopologyRunning(java.lang.String topologyName)
Is the given topology in RUNNING state?
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
setExecutionState(ExecutionEnvironment.ExecutionState executionState,
java.lang.String topologyName)
Set the execution state for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
setPhysicalPlan(PhysicalPlans.PhysicalPlan physicalPlan,
java.lang.String topologyName)
Set the physical plan for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
setSchedulerLocation(Scheduler.SchedulerLocation location,
java.lang.String topologyName)
Set the scheduler location for the given topology
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
setTMasterLocation(TopologyMaster.TMasterLocation location,
java.lang.String topologyName)
Set the location of Tmaster.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
setTopology(TopologyAPI.Topology topology,
java.lang.String topologyName)
Set the topology definition for the given topology
|
public com.google.common.util.concurrent.SettableFuture<java.lang.Boolean> nullFuture
public void initialize(Config config)
IStateManager
initialize
in interface IStateManager
public void close()
IStateManager
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
close
in interface IStateManager
close
in interface java.lang.AutoCloseable
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> isTopologyRunning(java.lang.String topologyName)
IStateManager
isTopologyRunning
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> setTMasterLocation(TopologyMaster.TMasterLocation location, java.lang.String topologyName)
IStateManager
setTMasterLocation
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> setExecutionState(ExecutionEnvironment.ExecutionState executionState, java.lang.String topologyName)
IStateManager
setExecutionState
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> setTopology(TopologyAPI.Topology topology, java.lang.String topologyName)
IStateManager
setTopology
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> setPhysicalPlan(PhysicalPlans.PhysicalPlan physicalPlan, java.lang.String topologyName)
IStateManager
setPhysicalPlan
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> setSchedulerLocation(Scheduler.SchedulerLocation location, java.lang.String topologyName)
IStateManager
setSchedulerLocation
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> deleteTMasterLocation(java.lang.String topologyName)
IStateManager
deleteTMasterLocation
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> deleteExecutionState(java.lang.String topologyName)
IStateManager
deleteExecutionState
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> deleteTopology(java.lang.String topologyName)
IStateManager
deleteTopology
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> deletePhysicalPlan(java.lang.String topologyName)
IStateManager
deletePhysicalPlan
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> deleteSchedulerLocation(java.lang.String topologyName)
IStateManager
deleteSchedulerLocation
in interface IStateManager
public com.google.common.util.concurrent.ListenableFuture<TopologyMaster.TMasterLocation> getTMasterLocation(WatchCallback watcher, java.lang.String topologyName)
IStateManager
getTMasterLocation
in interface IStateManager
watcher
- @see com.twitter.heron.spi.statemgr.WatchCallbackpublic com.google.common.util.concurrent.ListenableFuture<Scheduler.SchedulerLocation> getSchedulerLocation(WatchCallback watcher, java.lang.String topologyName)
IStateManager
getSchedulerLocation
in interface IStateManager
watcher
- @see com.twitter.heron.spi.statemgr.WatchCallbackpublic com.google.common.util.concurrent.ListenableFuture<TopologyAPI.Topology> getTopology(WatchCallback watcher, java.lang.String topologyName)
IStateManager
getTopology
in interface IStateManager
watcher
- @see com.twitter.heron.spi.statemgr.WatchCallbackpublic com.google.common.util.concurrent.ListenableFuture<ExecutionEnvironment.ExecutionState> getExecutionState(WatchCallback watcher, java.lang.String topologyName)
IStateManager
getExecutionState
in interface IStateManager
watcher
- @see com.twitter.heron.spi.statemgr.WatchCallbackpublic com.google.common.util.concurrent.ListenableFuture<PhysicalPlans.PhysicalPlan> getPhysicalPlan(WatchCallback watcher, java.lang.String topologyName)
IStateManager
getPhysicalPlan
in interface IStateManager
watcher
- @see com.twitter.heron.spi.statemgr.WatchCallback