public abstract class StormToolOptions extends InOutToolOptions
Modifier and Type | Field and Description |
---|---|
List<String> |
kestrelHosts
the ketrel queues for input and output
|
List<KestrelServerSpec> |
kestrelSpecList
parsed kestrel server specs
|
int |
numberOfWorkers
number of topology workers selected
|
TopologyModeOption |
tm
The topology
|
TopologyMode |
tmOp |
output
Constructor and Description |
---|
StormToolOptions(String[] args) |
Modifier and Type | Method and Description |
---|---|
abstract backtype.storm.generated.StormTopology |
constructTopology() |
abstract String |
getExtractUsageInfo() |
void |
prepare()
Parse arguments and validate
|
abstract backtype.storm.Config |
prepareConfig() |
abstract void |
topologyCleanup()
called when the
TopologyModeOption believes it is done |
abstract String |
topologyName() |
abstract void |
validate(org.kohsuke.args4j.CmdLineParser parser) |
getAllInputs, getInput, getInputFile, getOutput, isContinue, isForce, overwriteOutput, prepareMultivaluedArgument, setInput, setInputFile, setOutput
public TopologyModeOption tm
public TopologyMode tmOp
public List<String> kestrelHosts
public int numberOfWorkers
public List<KestrelServerSpec> kestrelSpecList
public StormToolOptions(String[] args)
args
- public abstract backtype.storm.Config prepareConfig()
public abstract backtype.storm.generated.StormTopology constructTopology()
StormTopology
based on the optionspublic abstract String topologyName()
public abstract void topologyCleanup()
TopologyModeOption
believes it is donepublic void prepare() throws IOException
IOException
public abstract String getExtractUsageInfo()
public abstract void validate(org.kohsuke.args4j.CmdLineParser parser) throws org.kohsuke.args4j.CmdLineException, IOException
parser
- initialise the toolIOException
org.kohsuke.args4j.CmdLineException
- when something goes wrong