public class LocalCluster extends java.lang.Object implements ILocalCluster
Constructor and Description |
---|
LocalCluster() |
Modifier and Type | Method and Description |
---|---|
void |
activate(java.lang.String topoName) |
void |
deactivate(java.lang.String topoName) |
java.util.Map |
getState() |
StormTopology |
getTopology(java.lang.String topoName) |
java.lang.String |
getTopologyConf(java.lang.String topoName) |
void |
killTopology(java.lang.String topoName) |
void |
shutdown() |
void |
submitTopology(java.lang.String topoName,
java.util.Map config,
StormTopology stormTopology) |
public void submitTopology(java.lang.String topoName, java.util.Map config, StormTopology stormTopology) throws AlreadyAliveException, InvalidTopologyException
submitTopology
in interface ILocalCluster
AlreadyAliveException
InvalidTopologyException
public void killTopology(java.lang.String topoName) throws NotAliveException
killTopology
in interface ILocalCluster
NotAliveException
public void activate(java.lang.String topoName) throws NotAliveException
activate
in interface ILocalCluster
NotAliveException
public void deactivate(java.lang.String topoName) throws NotAliveException
deactivate
in interface ILocalCluster
NotAliveException
public void shutdown()
shutdown
in interface ILocalCluster
public java.lang.String getTopologyConf(java.lang.String topoName)
getTopologyConf
in interface ILocalCluster
public StormTopology getTopology(java.lang.String topoName)
getTopology
in interface ILocalCluster
public java.util.Map getState()
getState
in interface ILocalCluster