Class TableDataCacheProxy
java.lang.Object
com.fishlib.util.process.OnetimeShutdownTask
com.illumon.iris.db.v2.locations.server.TableDataCacheProxy
- All Implemented Interfaces:
com.fishlib.util.process.ShutdownManager.Task
public class TableDataCacheProxy
extends com.fishlib.util.process.OnetimeShutdownTask
Server that exports a table data service according to configured data routing strategies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The TDCP accepts authenticated RemoteTableDataService connections, and must assess whether the associated users can see tables. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableDataCacheProxy
createTableDataCacheProxy
(com.fishlib.io.logger.Logger log, Database database, TableDataServiceFactory tdsFactory, TableDataServiceConfig proxyConfig, AuditEventLoggerBasicEx auditEventLogger) Deprecated.Many of the parameters are not used as expected.static TableDataCacheProxy
createTableDataCacheProxy
(com.fishlib.io.logger.Logger log, DataRoutingService routingService, Database database, TableDataService sourceService, String configName, AuditEventLoggerBasicEx auditEventLogger) Creates a new instance ofTableDataCacheProxy
.static void
void
shutdown()
void
start()
Deprecated.usestartInWorker()
insteadvoid
Start the TableDataCacheProxy with no stats logging.Methods inherited from class com.fishlib.util.process.OnetimeShutdownTask
adapt, awaitShutdown, awaitShutdown, invoke, isShutdown
-
Method Details
-
start
Deprecated.usestartInWorker()
instead -
startInWorker
public void startInWorker()Start the TableDataCacheProxy with no stats logging. -
shutdown
public void shutdown()- Specified by:
shutdown
in classcom.fishlib.util.process.OnetimeShutdownTask
-
main
- Throws:
IOException
-
createTableDataCacheProxy
@Deprecated public static TableDataCacheProxy createTableDataCacheProxy(@NotNull com.fishlib.io.logger.Logger log, @NotNull Database database, @NotNull TableDataServiceFactory tdsFactory, @NotNull TableDataServiceConfig proxyConfig, @NotNull AuditEventLoggerBasicEx auditEventLogger) Deprecated.Many of the parameters are not used as expected. UsecreateTableDataCacheProxy(Logger, DataRoutingService, Database, TableDataService, String, AuditEventLoggerBasicEx)
instead. Creates a new instance ofTableDataCacheProxy
.- Parameters:
log
- The logger to be used for logging events and information.database
- The database that the proxy will interact with (just filter generation)tdsFactory
- The factory for creating a source TableDataServiceproxyConfig
- will be used only to get the name of the configurationauditEventLogger
- The logger for audit events.- Returns:
- A new instance of
TableDataCacheProxy
.
-
createTableDataCacheProxy
public static TableDataCacheProxy createTableDataCacheProxy(@NotNull com.fishlib.io.logger.Logger log, @NotNull DataRoutingService routingService, @NotNull Database database, @NotNull TableDataService sourceService, @NotNull String configName, @NotNull AuditEventLoggerBasicEx auditEventLogger) Creates a new instance ofTableDataCacheProxy
.- Parameters:
log
- The logger to be used for logging events and information.routingService
- the DataRoutingService for configuration and to watch for updatesdatabase
- The database that the proxy will interact with (just filter generation)sourceService
- The source TableDataService from which data will be read and servedconfigName
- the name of the TableDataServiceConfig to use for this TableDataCacheProxyauditEventLogger
- The logger for audit events.- Returns:
- A new instance of
TableDataCacheProxy
.
-