public class SubmitterMain
extends java.lang.Object
Constructor and Description |
---|
SubmitterMain(Config config,
TopologyAPI.Topology topology) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
callLauncherRunner(Config runtime) |
protected static Config |
commandLineConfigs(java.lang.String cluster,
java.lang.String role,
java.lang.String environ,
java.lang.Boolean verbose)
Load the config parameters from the command line
|
protected static Config |
defaultConfigs(java.lang.String heronHome,
java.lang.String configPath,
java.lang.String releaseFile)
Load the defaults config
|
static void |
main(java.lang.String[] args) |
protected static Config |
overrideConfigs(java.lang.String overrideConfigPath)
Load the override config from cli
|
boolean |
submitTopology()
Submit a topology
1.
|
protected static Config |
topologyConfigs(java.lang.String topologyPackage,
java.lang.String topologyJarFile,
java.lang.String topologyDefnFile,
TopologyAPI.Topology topology)
Load the topology config
|
protected java.net.URI |
uploadPackage(IUploader uploader) |
protected boolean |
validateSubmit(SchedulerStateManagerAdaptor adaptor,
java.lang.String topologyName) |
public SubmitterMain(Config config, TopologyAPI.Topology topology)
protected static Config topologyConfigs(java.lang.String topologyPackage, java.lang.String topologyJarFile, java.lang.String topologyDefnFile, TopologyAPI.Topology topology)
topologyPackage,
- tar ball containing user submitted jar/tar, defn and configtopologyJarFile,
- name of the user submitted topology jar/tar filetopology,
- proto in memory version of topology definitionprotected static Config defaultConfigs(java.lang.String heronHome, java.lang.String configPath, java.lang.String releaseFile)
heronHome,
- directory of heron homeconfigPath,
- directory containing the configreleaseFile,
- release file containing build information
return config, the defaults config
protected static Config overrideConfigs(java.lang.String overrideConfigPath)
overrideConfigPath,
- override config file path
protected static Config commandLineConfigs(java.lang.String cluster, java.lang.String role, java.lang.String environ, java.lang.Boolean verbose)
cluster,
- name of the clusterrole,
- user roleenviron,
- user provided environment/tagverbose,
- enable verbose loggingpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public boolean submitTopology()
protected boolean validateSubmit(SchedulerStateManagerAdaptor adaptor, java.lang.String topologyName)
protected java.net.URI uploadPackage(IUploader uploader)
protected boolean callLauncherRunner(Config runtime)