Package alluxio.cli
Interface ValidationTask
-
- All Known Implementing Classes:
AbstractValidationTask
public interface ValidationTask
Interface for a validation task run by validateEnv command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name of the task.java.util.List<org.apache.commons.cli.Option>
getOptionList()
ValidationTaskResult
validate(java.util.Map<java.lang.String,java.lang.String> optionMap)
Runs the validation task.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the task.- Returns:
- the task name
-
getOptionList
java.util.List<org.apache.commons.cli.Option> getOptionList()
- Returns:
- Set of
Option
required by this task
-
validate
ValidationTaskResult validate(java.util.Map<java.lang.String,java.lang.String> optionMap) throws java.lang.InterruptedException
Runs the validation task.- Parameters:
optionMap
- contains string representation of <key, value> pairs- Returns:
- the result of validation task
- Throws:
java.lang.InterruptedException
-
-