Package org.apache.accumulo.core.spi.fs
Class RandomVolumeChooser
java.lang.Object
org.apache.accumulo.core.spi.fs.RandomVolumeChooser
- All Implemented Interfaces:
- VolumeChooser
- Direct Known Subclasses:
- PreferredVolumeChooser
A 
VolumeChooser that selects a volume at random from the list of provided volumes.- 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) Selects a volume at random from the provided set of volumes.
- 
Constructor Details- 
RandomVolumeChooserpublic RandomVolumeChooser()
 
- 
- 
Method Details- 
chooseSelects a volume at random from the provided set of volumes. The environment scope is not utilized.- 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
- Returns:
- same set of volume options that were originally provided.
 
 
-