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.
  • Method Details

    • start

      @Deprecated public void start()
      Deprecated.
      use startInWorker() instead
    • startInWorker

      public void startInWorker()
      Start the TableDataCacheProxy with no stats logging.
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in class com.fishlib.util.process.OnetimeShutdownTask
    • main

      public static void main(String... args) throws IOException
      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. Use createTableDataCacheProxy(Logger, DataRoutingService, Database, TableDataService, String, AuditEventLoggerBasicEx) instead. Creates a new instance of TableDataCacheProxy.
      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 TableDataService
      proxyConfig - will be used only to get the name of the configuration
      auditEventLogger - 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 of TableDataCacheProxy.
      Parameters:
      log - The logger to be used for logging events and information.
      routingService - the DataRoutingService for configuration and to watch for updates
      database - The database that the proxy will interact with (just filter generation)
      sourceService - The source TableDataService from which data will be read and served
      configName - the name of the TableDataServiceConfig to use for this TableDataCacheProxy
      auditEventLogger - The logger for audit events.
      Returns:
      A new instance of TableDataCacheProxy.