Interface TableDataService
- All Superinterfaces:
NamedImplementation
- All Known Implementing Classes:
AbstractTableDataService
,CompositeTableDataService
,DelegatingTableDataService
,DynamicTableDataService
,FilteredTableDataService
,LocalTableDataService
,RemoteTableDataService
,TableDataService.Null
Service responsible for table location discovery.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Authenticate the TableDataService usingAuthenticationClientManager.getDefault()
default String
describe()
Like toString, but with more detail.getKey()
Return a key object that identifies this TableDataService instance, and does not hold resources.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.default TableLocationProvider
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.default void
shutdown()
Stop any processes and release resources held by this TableDataService instance.Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
-
Method Details
-
getTableLocationProvider
@NotNull default TableLocationProvider getTableLocationProvider(@NotNull String namespace, @NotNull String tableName, @NotNull TableType tableType) Request a table location provider from this service.- Parameters:
namespace
- The namespacetableName
- The table nametableType
- The table type- Returns:
- A table location provider for the specified table key fields
-
getTableLocationProvider
Request a table location provider from this service.- Parameters:
tableKey
- The table key- Returns:
- A table location provider for the specified key
-
getKnownLocationProviders
Get the collection of table location providers that are currently instantiated. The returned map is unmodifiable and stable.- Returns:
- map of TableKey to TableLocationProvider
-
reset
void reset()Forget all state for future requests. -
reset
Forget all state for a single table.- Parameters:
key
- forget state for this TableKey
-
getName
Allow TableDataService instances to have names. -
getKey
Return a key object that identifies this TableDataService instance, and does not hold resources.- Returns:
- a TableDataServiceKey for this TableDataService
-
authenticate
void authenticate()Authenticate the TableDataService usingAuthenticationClientManager.getDefault()
-
describe
Like toString, but with more detail.- Returns:
- a description string
-
shutdown
default void shutdown()Stop any processes and release resources held by this TableDataService instance.
-