| | |
| | | */ |
| | | public final class RebuildIndexParameters |
| | | { |
| | | private String configurationFile; |
| | | private String baseDN; |
| | | |
| | | private RebuildIndexParameters() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a builder for the rebuild index parameters. |
| | | * |
| | | * @return a builder |
| | | */ |
| | | public static Builder rebuildIndexParams() |
| | | { |
| | | return new Builder(); |
| | | } |
| | | |
| | | /** |
| | | * Generates command-line arguments from the parameters. |
| | | * |
| | | * @return command-line arguments |
| | | */ |
| | | String[] toCommandLineArguments() |
| | | String[] toCommandLineArguments(String configurationFile) |
| | | { |
| | | return new String[] { |
| | | "--configFile", configurationFile, |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a builder for the rebuild index parameters. |
| | | * |
| | | * @return a builder |
| | | */ |
| | | public static Builder rebuildIndexParams() |
| | | { |
| | | return new Builder(); |
| | | } |
| | | |
| | | /** |
| | | * Generates the parameters from this builder. |
| | | * <p> |
| | | * After this call, the builder is reset and can be used to generate other parameters. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets the configuration file of the server. |
| | | * |
| | | * @param file |
| | | * the configuration file |
| | | * @return this builder |
| | | */ |
| | | public Builder configurationFile(String file) |
| | | { |
| | | params.configurationFile = file; |
| | | return this; |
| | | } |
| | | |
| | | /** |
| | | * Sets the base Dn for user information in the directory server. |
| | | * |
| | | * @param baseDN |