Package org.apache.accumulo.core.spi.fs
Class DelegatingChooser
java.lang.Object
org.apache.accumulo.core.spi.fs.DelegatingChooser
- All Implemented Interfaces:
- VolumeChooser
A 
VolumeChooser 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 time this was written, the only known scope was
 "logger".- Since:
- 2.1.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionchoosable(VolumeChooserEnvironment env, Set<String> options) Return the subset of all possible volumes that could be chosen across all invocations ofVolumeChooser.choose(VolumeChooserEnvironment, Set).
 This is currently used to determine if the chosen volumes can support the required filesystem operations for write ahead logs.
 There may be other use cases in the future.choose(VolumeChooserEnvironment env, Set<String> options) Choose a volume from the provided options.
- 
Constructor Details- 
DelegatingChooserpublic DelegatingChooser()
 
- 
- 
Method Details- 
chooseDescription copied from interface:VolumeChooserChoose a volume from the provided options.- Specified by:
- choosein interface- VolumeChooser
- Parameters:
- env- the server environment provided by the calling framework
- options- the list of volumes to choose from
- Returns:
- a volume from the list of volume options
 
- 
choosableDescription copied from interface:VolumeChooserReturn the subset of all possible volumes that could be chosen across all invocations ofVolumeChooser.choose(VolumeChooserEnvironment, Set).
 This is currently used to determine if the chosen volumes can support the required filesystem operations for write ahead logs.
 There may be other use cases in the future.- Specified by:
- choosablein interface- VolumeChooser
 
 
-