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 TypeMethodDescriptionvoidAuthenticate the TableDataService usingAuthenticationClientManager.getDefault()default Stringdescribe()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 TableLocationProvidergetTableLocationProvider(String namespace, String tableName, TableType tableType) Request a table location provider from this service.voidreset()Forget all state for future requests.voidForget all state for a single table.default voidshutdown()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.
-