Class DataImportServerCommandChannel

java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.DataImportServerCommandChannel
All Implemented Interfaces:
AutoCloseable

public class DataImportServerCommandChannel extends Object implements AutoCloseable
Open a socket to a DataImportServer, in preparation for sending commands. Unlike LogtailerDestinationManager, this connection is not tied to a specific table location and it doesn't have an ongoing job, or thread. TODO: this needs a maintenance thread (or something similar) that can close the socket after a period of inactivity
  • Field Details

  • Constructor Details

    • DataImportServerCommandChannel

      public DataImportServerCommandChannel(com.fishlib.io.logger.Logger log, DataRoutingService.DeferredEndpoint remoteAddress, String disName)
      Construct a manager to log stream commands. Uses the default authentication manager.
      Parameters:
      log - the log to which errors will be sent
      remoteAddress - the address of the remote DataImportServer for this connection
      disName - the name of the targeted DataImportServer. Useful for logging
    • DataImportServerCommandChannel

      public DataImportServerCommandChannel(@NotNull com.fishlib.io.logger.Logger log, @NotNull DataRoutingService.DeferredEndpoint remoteAddress, @NotNull String disName, @NotNull TokenFactoryFactory tokenAuthenticationManager)
      Construct a manager to log stream commands.
      Parameters:
      log - the log to which errors will be sent
      remoteAddress - the address of the remote DataImportServer for this connection
      disName - the name of the targeted DataImportServer. Useful for logging
      tokenAuthenticationManager - a new authentication client manager
  • Method Details