Package org.apache.storm
Class LocalCluster
- java.lang.Object
-
- org.apache.storm.LocalCluster
-
- All Implemented Interfaces:
ILocalCluster
public class LocalCluster extends Object implements ILocalCluster
-
-
Constructor Summary
Constructors Constructor Description LocalCluster()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(String topoName)
void
deactivate(String topoName)
Map
getState()
StormTopology
getTopology(String topoName)
String
getTopologyConf(String topoName)
void
killTopology(String topoName)
void
shutdown()
void
submitTopology(String topoName, Map config, StormTopology stormTopology)
-
-
-
Method Detail
-
submitTopology
public void submitTopology(String topoName, Map config, StormTopology stormTopology) throws AlreadyAliveException, InvalidTopologyException
- Specified by:
submitTopology
in interfaceILocalCluster
- Throws:
AlreadyAliveException
InvalidTopologyException
-
killTopology
public void killTopology(String topoName) throws NotAliveException
- Specified by:
killTopology
in interfaceILocalCluster
- Throws:
NotAliveException
-
activate
public void activate(String topoName) throws NotAliveException
- Specified by:
activate
in interfaceILocalCluster
- Throws:
NotAliveException
-
deactivate
public void deactivate(String topoName) throws NotAliveException
- Specified by:
deactivate
in interfaceILocalCluster
- Throws:
NotAliveException
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceILocalCluster
-
getTopologyConf
public String getTopologyConf(String topoName)
- Specified by:
getTopologyConf
in interfaceILocalCluster
-
getTopology
public StormTopology getTopology(String topoName)
- Specified by:
getTopology
in interfaceILocalCluster
-
getState
public Map getState()
- Specified by:
getState
in interfaceILocalCluster
-
-