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 voidactivate(String topoName)voiddeactivate(String topoName)MapgetState()StormTopologygetTopology(String topoName)StringgetTopologyConf(String topoName)voidkillTopology(String topoName)voidshutdown()voidsubmitTopology(String topoName, Map config, StormTopology stormTopology)
-
-
-
Method Detail
-
submitTopology
public void submitTopology(String topoName, Map config, StormTopology stormTopology) throws AlreadyAliveException, InvalidTopologyException
- Specified by:
submitTopologyin interfaceILocalCluster- Throws:
AlreadyAliveExceptionInvalidTopologyException
-
killTopology
public void killTopology(String topoName) throws NotAliveException
- Specified by:
killTopologyin interfaceILocalCluster- Throws:
NotAliveException
-
activate
public void activate(String topoName) throws NotAliveException
- Specified by:
activatein interfaceILocalCluster- Throws:
NotAliveException
-
deactivate
public void deactivate(String topoName) throws NotAliveException
- Specified by:
deactivatein interfaceILocalCluster- Throws:
NotAliveException
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceILocalCluster
-
getTopologyConf
public String getTopologyConf(String topoName)
- Specified by:
getTopologyConfin interfaceILocalCluster
-
getTopology
public StormTopology getTopology(String topoName)
- Specified by:
getTopologyin interfaceILocalCluster
-
getState
public Map getState()
- Specified by:
getStatein interfaceILocalCluster
-
-