Package org.apache.accumulo.server.fs
Class PreferredVolumeChooser
- java.lang.Object
-
- org.apache.accumulo.server.fs.RandomVolumeChooser
-
- org.apache.accumulo.server.fs.PreferredVolumeChooser
-
- All Implemented Interfaces:
VolumeChooser
public class PreferredVolumeChooser extends RandomVolumeChooser
ARandomVolumeChooser
that limits its choices from a given set of options to the subset of those options preferred for a particular table. Defaults to selecting from all of the options presented. Can be customized via the table property "table.custom.preferredVolumes", which should contain a comma separated list ofVolume
URIs. Note that both the property name and the format of its value are specific to this particular implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFERRED_VOLUMES_CUSTOM_KEY
This should matchProperty.TABLE_ARBITRARY_PROP_PREFIX
-
Constructor Summary
Constructors Constructor Description PreferredVolumeChooser()
-
-
-
Field Detail
-
PREFERRED_VOLUMES_CUSTOM_KEY
public static final String PREFERRED_VOLUMES_CUSTOM_KEY
This should matchProperty.TABLE_ARBITRARY_PROP_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
choose
public String choose(VolumeChooserEnvironment env, String[] options)
- Specified by:
choose
in interfaceVolumeChooser
- Overrides:
choose
in classRandomVolumeChooser
-
-