Package org.apache.bookkeeper.util
Interface Tool
-
- All Known Implementing Classes:
BookieShell
public interface ToolA tool interface that supports handling of generic command-line options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intrun(java.lang.String[] args)Exectue the command with given arguments.voidsetConf(org.apache.commons.configuration2.CompositeConfiguration conf)Passe a configuration object to the tool.
-
-
-
Method Detail
-
run
int run(java.lang.String[] args) throws java.lang.Exception
Exectue the command with given arguments.- Parameters:
args- command specific arguments- Returns:
- exit code.
- Throws:
java.lang.Exception
-
setConf
void setConf(org.apache.commons.configuration2.CompositeConfiguration conf) throws java.lang.ExceptionPasse a configuration object to the tool.- Parameters:
conf- configuration object- Throws:
java.lang.Exception
-
-