Package org.dspace.discovery
Enum IndexClientOptions
- java.lang.Object
-
- java.lang.Enum<IndexClientOptions>
-
- org.dspace.discovery.IndexClientOptions
-
- All Implemented Interfaces:
Serializable,Comparable<IndexClientOptions>
public enum IndexClientOptions extends Enum<IndexClientOptions>
This Enum holds all the possible options and combinations for the Index discovery script
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUILDBUILDANDSPELLCHECKCLEANDELETEFORCEUPDATEFORCEUPDATEANDSPELLCHECKHELPINDEXOPTIMIZEREMOVESPELLCHECKUPDATEUPDATEANDSPELLCHECK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static org.apache.commons.cli.OptionsconstructOptions()protected static IndexClientOptionsgetIndexClientOption(org.apache.commons.cli.CommandLine commandLine)This method resolves the CommandLine parameters to figure out which action the index-discovery script should performstatic IndexClientOptionsvalueOf(String name)Returns the enum constant of this type with the specified name.static IndexClientOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REMOVE
public static final IndexClientOptions REMOVE
-
CLEAN
public static final IndexClientOptions CLEAN
-
DELETE
public static final IndexClientOptions DELETE
-
BUILD
public static final IndexClientOptions BUILD
-
BUILDANDSPELLCHECK
public static final IndexClientOptions BUILDANDSPELLCHECK
-
OPTIMIZE
public static final IndexClientOptions OPTIMIZE
-
SPELLCHECK
public static final IndexClientOptions SPELLCHECK
-
INDEX
public static final IndexClientOptions INDEX
-
UPDATE
public static final IndexClientOptions UPDATE
-
FORCEUPDATE
public static final IndexClientOptions FORCEUPDATE
-
UPDATEANDSPELLCHECK
public static final IndexClientOptions UPDATEANDSPELLCHECK
-
FORCEUPDATEANDSPELLCHECK
public static final IndexClientOptions FORCEUPDATEANDSPELLCHECK
-
HELP
public static final IndexClientOptions HELP
-
-
Method Detail
-
values
public static IndexClientOptions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IndexClientOptions c : IndexClientOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndexClientOptions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIndexClientOption
protected static IndexClientOptions getIndexClientOption(org.apache.commons.cli.CommandLine commandLine)
This method resolves the CommandLine parameters to figure out which action the index-discovery script should perform- Parameters:
commandLine- The relevant CommandLine for the index-discovery script- Returns:
- The index-discovery option to be ran, parsed from the CommandLine
-
constructOptions
protected static org.apache.commons.cli.Options constructOptions()
-
-