Package org.apache.solr.cli
Class ToolBase
- java.lang.Object
-
- org.apache.solr.cli.ToolBase
-
- All Implemented Interfaces:
Tool
- Direct Known Subclasses:
ApiTool
,AssertTool
,AuthTool
,ConfigSetDownloadTool
,ConfigSetUploadTool
,ConfigTool
,CreateCollectionTool
,CreateCoreTool
,CreateTool
,DeleteTool
,ExportTool
,HealthcheckTool
,PackageTool
,PostLogsTool
,PostTool
,RunExampleTool
,StatusTool
,VersionTool
,ZkCpTool
,ZkLsTool
,ZkMkrootTool
,ZkMvTool
,ZkRmTool
public abstract class ToolBase extends Object implements Tool
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
stdout
protected boolean
verbose
-
Constructor Summary
Constructors Modifier Constructor Description protected
ToolBase()
protected
ToolBase(PrintStream stdout)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
echo(String msg)
protected void
echoIfVerbose(String msg, org.apache.commons.cli.CommandLine cli)
abstract void
runImpl(org.apache.commons.cli.CommandLine cli)
int
runTool(org.apache.commons.cli.CommandLine cli)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.cli.Tool
getName, getOptions
-
-
-
-
Field Detail
-
stdout
protected PrintStream stdout
-
verbose
protected boolean verbose
-
-
Constructor Detail
-
ToolBase
protected ToolBase()
-
ToolBase
protected ToolBase(PrintStream stdout)
-
-