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 sets
ScannerBase.setConsistencyLevel(ScannerBase.ConsistencyLevel)
to ScannerBase.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 config scan.server.selector.impl
- Since:
- 2.1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
This interface exists so that is easier to evolve what is passed toinit(InitParameters)
without having to make breaking changes.static interface
This interface exists so that is easier to evolve what is passed toselectServers(SelectorParameters)
without having to make breaking changes. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The scan server group name that will be used when one is not specified. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
This method is called once after aScanServerSelector
is instantiated.Uses theScanServerSelector.SelectorParameters
to determine which, if any, ScanServer should be used for scanning a tablet.
-
Field Details
-
DEFAULT_SCAN_SERVER_GROUP_NAME
The scan server group name that will be used when one is not specified.- See Also:
-
-
Method Details
-
init
This method is called once after aScanServerSelector
is instantiated. -
selectServers
Uses theScanServerSelector.SelectorParameters
to determine which, if any, ScanServer should be used for scanning a tablet.- Parameters:
params
- parameters for the calculation- Returns:
- results
-