public class PreferredVolumeChooser extends RandomVolumeChooser
RandomVolumeChooser
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 of Volume
URIs. Note that both the property name
and the format of its value are specific to this particular implementation.Modifier and Type | Field and Description |
---|---|
static String |
PREFERRED_VOLUMES_CUSTOM_KEY
This should match
Property.TABLE_ARBITRARY_PROP_PREFIX |
Constructor and Description |
---|
PreferredVolumeChooser() |
Modifier and Type | Method and Description |
---|---|
String |
choose(VolumeChooserEnvironment env,
String[] options) |
public static final String PREFERRED_VOLUMES_CUSTOM_KEY
Property.TABLE_ARBITRARY_PROP_PREFIX
public String choose(VolumeChooserEnvironment env, String[] options)
choose
in interface VolumeChooser
choose
in class RandomVolumeChooser
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.