Class DelegatingTableDataService
java.lang.Object
com.illumon.iris.db.v2.locations.server.DelegatingTableDataService
- All Implemented Interfaces:
TableDataService
,NamedImplementation
- Direct Known Subclasses:
DynamicTableDataService
A TableDataService that delegates to another TableDataService.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
TableDataService.Null
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Authenticate the TableDataService usingAuthenticationClientManager.getDefault()
describe()
Like toString, but with more detail.protected abstract TableDataService
Get the collection of table location providers that are currently instantiated.getName()
Allow TableDataService instances to have names.getTableLocationProvider
(TableKey tableKey) Request a table location provider from this service.getTableLocationProvider
(String namespace, String tableName, TableType tableType) Request a table location provider from this service.void
reset()
Forget all state for future requests.void
Forget all state for a single table.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
Methods inherited from interface com.illumon.iris.db.v2.tabledataservice.TableDataService
getKey, shutdown
-
Constructor Details
-
DelegatingTableDataService
public DelegatingTableDataService()
-
-
Method Details
-
getDelegate
-
getTableLocationProvider
@NotNull public TableLocationProvider getTableLocationProvider(@NotNull String namespace, @NotNull String tableName, @NotNull TableType tableType) Description copied from interface:TableDataService
Request a table location provider from this service.- Specified by:
getTableLocationProvider
in interfaceTableDataService
- Parameters:
namespace
- The namespacetableName
- The table nametableType
- The table type- Returns:
- A table location provider for the specified table key fields
-
getTableLocationProvider
Description copied from interface:TableDataService
Request a table location provider from this service.- Specified by:
getTableLocationProvider
in interfaceTableDataService
- Parameters:
tableKey
- The table key- Returns:
- A table location provider for the specified key
-
getKnownLocationProviders
Description copied from interface:TableDataService
Get the collection of table location providers that are currently instantiated. The returned map is unmodifiable and stable.- Specified by:
getKnownLocationProviders
in interfaceTableDataService
- Returns:
- map of TableKey to TableLocationProvider
-
reset
public void reset()Description copied from interface:TableDataService
Forget all state for future requests.- Specified by:
reset
in interfaceTableDataService
-
reset
Description copied from interface:TableDataService
Forget all state for a single table.- Specified by:
reset
in interfaceTableDataService
- Parameters:
key
- forget state for this TableKey
-
getName
Description copied from interface:TableDataService
Allow TableDataService instances to have names.- Specified by:
getName
in interfaceTableDataService
-
authenticate
public void authenticate()Description copied from interface:TableDataService
Authenticate the TableDataService usingAuthenticationClientManager.getDefault()
- Specified by:
authenticate
in interfaceTableDataService
-
describe
Description copied from interface:TableDataService
Like toString, but with more detail.- Specified by:
describe
in interfaceTableDataService
- Returns:
- a description string
-