Class CompositeTableDataService
java.lang.Object
com.illumon.iris.db.v2.tabledataservice.AbstractTableDataService
com.illumon.iris.db.v2.tabledataservice.CompositeTableDataService
- All Implemented Interfaces:
TableDataService,NamedImplementation
Routing TableDataService that applies a selector function to pick service(s) for each request.
It is assumed that each service will provide access to a non-overlapping set of table locations for any table key.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
TableDataService.Null -
Constructor Summary
ConstructorsConstructorDescriptionCompositeTableDataService(String name, CompositeTableDataService.ServiceSelector serviceSelector) -
Method Summary
Modifier and TypeMethodDescriptionvoidAuthenticate the TableDataService usingAuthenticationClientManager.getDefault()describe()Like toString, but with more detail.protected TableLocationProvidermakeTableLocationProvider(TableKey tableKey) voidreset()Forget all state for future requests.voidForget all state for a single table.toString()Methods inherited from class com.illumon.iris.db.v2.tabledataservice.AbstractTableDataService
getKey, getKnownLocationProviders, getName, getTableLocationProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationNameMethods inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
getTableLocationProvider, shutdown
-
Constructor Details
-
CompositeTableDataService
public CompositeTableDataService(@NotNull String name, @NotNull CompositeTableDataService.ServiceSelector serviceSelector) - Parameters:
name- optional name for this serviceserviceSelector- Function to map a table key to a set of services that should be queried.
-
-
Method Details
-
authenticate
public void authenticate()Description copied from interface:TableDataServiceAuthenticate the TableDataService usingAuthenticationClientManager.getDefault() -
reset
public void reset()Description copied from interface:TableDataServiceForget all state for future requests.- Specified by:
resetin interfaceTableDataService- Overrides:
resetin classAbstractTableDataService
-
reset
Description copied from interface:TableDataServiceForget all state for a single table.- Specified by:
resetin interfaceTableDataService- Overrides:
resetin classAbstractTableDataService- Parameters:
key- forget state for this TableKey
-
makeTableLocationProvider
- Specified by:
makeTableLocationProviderin classAbstractTableDataService
-
toString
- Overrides:
toStringin classAbstractTableDataService
-
describe
Description copied from interface:TableDataServiceLike toString, but with more detail.- Returns:
- a description string
-