Package org.apache.accumulo.server.fs
Class PerTableVolumeChooser
- java.lang.Object
-
- org.apache.accumulo.server.fs.PerTableVolumeChooser
-
- All Implemented Interfaces:
VolumeChooser
public class PerTableVolumeChooser extends Object implements VolumeChooser
AVolumeChooser
that delegates to another volume chooser based on other properties: table.custom.volume.chooser for tables, and general.custom.volume.chooser.scoped for scopes. general.custom.volume.chooser.{scope} can override the system wide setting for general.custom.volume.chooser.scoped. At the this this was written, the only known scope was "logger".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.server.fs.VolumeChooser
VolumeChooser.VolumeChooserException
-
-
Constructor Summary
Constructors Constructor Description PerTableVolumeChooser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
choose(VolumeChooserEnvironment env, String[] options)
Choose a volume from the provided options.
-
-
-
Method Detail
-
choose
public String choose(VolumeChooserEnvironment env, String[] options) throws VolumeChooser.VolumeChooserException
Description copied from interface:VolumeChooser
Choose a volume from the provided options.- Specified by:
choose
in interfaceVolumeChooser
- Parameters:
env
- the server environment provided by the calling frameworkoptions
- the list of volumes to choose from- Returns:
- one of the options
- Throws:
VolumeChooser.VolumeChooserException
- if there is an error choosing (this is a RuntimeException); this does not preclude other RuntimeExceptions from occurring
-
-