backtype.storm.generated.SubmitOptions Java Examples

The following examples show how to use backtype.storm.generated.SubmitOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServiceHandler.java    From jstorm with Apache License 2.0 4 votes vote down vote up
@Override
public String submitTopology(String name, String uploadedJarLocation, String jsonConf, StormTopology topology)
        throws TException, TopologyAssignException {
    SubmitOptions options = new SubmitOptions(TopologyInitialStatus.ACTIVE);
    return submitTopologyWithOpts(name, uploadedJarLocation, jsonConf, topology, options);
}
 
Example #2
Source File: ILocalCluster.java    From jstorm with Apache License 2.0 4 votes vote down vote up
void submitTopologyWithOpts(String topologyName, Map conf, StormTopology topology, SubmitOptions submitOpts)
throws AlreadyAliveException, InvalidTopologyException;
 
Example #3
Source File: StormSubmitter.java    From eagle with Apache License 2.0 2 votes vote down vote up
/**
 * Submits a topology to run on the cluster. A topology runs forever or until
 * explicitly killed.
 *
 * @param name the name of the storm.
 * @param stormConf the topology-specific configuration. See {@link Config}.
 * @param topology the processing to execute.
 * @param opts to manipulate the starting of the topology.
 * @throws AlreadyAliveException if a topology with this name is already running
 * @throws InvalidTopologyException if an invalid topology was submitted
 */
public static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts)
    throws AlreadyAliveException, InvalidTopologyException {
    submitTopology(name, stormConf, topology, opts, null);
}