Interface ScanServerSelector
-
- All Known Implementing Classes:
ConfigurableScanServerSelector
public interface ScanServerSelector
A client side plugin that determines what scan servers to use for eventually consistent scans. When a scanner setsScannerBase.setConsistencyLevel(ScannerBase.ConsistencyLevel)
toScannerBase.ConsistencyLevel.EVENTUAL
then this plugin is used to determine which scan servers to use for a given tablet. To configure a class to use for this plugin, set its name using the client configscan.server.selector.impl
- Since:
- 2.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ScanServerSelector.InitParameters
This interface exists so that is easier to evolve what is passed toinit(InitParameters)
without having to make breaking changes.static interface
ScanServerSelector.SelectorParameters
This interface exists so that is easier to evolve what is passed toselectServers(SelectorParameters)
without having to make breaking changes.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SCAN_SERVER_GROUP_NAME
The scan server group name that will be used when one is not specified.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
init(ScanServerSelector.InitParameters params)
This method is called once after aScanServerSelector
is instantiated.ScanServerSelections
selectServers(ScanServerSelector.SelectorParameters params)
Uses theScanServerSelector.SelectorParameters
to determine which, if any, ScanServer should be used for scanning a tablet.
-
-
-
Field Detail
-
DEFAULT_SCAN_SERVER_GROUP_NAME
static final String DEFAULT_SCAN_SERVER_GROUP_NAME
The scan server group name that will be used when one is not specified.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
default void init(ScanServerSelector.InitParameters params)
This method is called once after aScanServerSelector
is instantiated.
-
selectServers
ScanServerSelections selectServers(ScanServerSelector.SelectorParameters params)
Uses theScanServerSelector.SelectorParameters
to determine which, if any, ScanServer should be used for scanning a tablet.- Parameters:
params
- parameters for the calculation- Returns:
- results
-
-