Class DataImportServiceConfigImpl

java.lang.Object
com.illumon.iris.db.v2.routing.dynamicdis.DataImportServiceConfigImpl
All Implemented Interfaces:
StringUtils.StringKeyedObject, DataImportServiceConfig, DataRoutingService.PropertyProvider, ServiceRegistryConfig, NamedImplementation

@Immutable public abstract class DataImportServiceConfigImpl extends Object implements DataImportServiceConfig, DataRoutingService.PropertyProvider
A POJO (more or less) that can be used to make and use DataImportServiceConfig instances independent of a full DataRoutingService. Some Filters require a routing service, or at least collected claims, and these cannot be used until this object is plugged into a DataRoutingService.
  • Constructor Details

    • DataImportServiceConfigImpl

      public DataImportServiceConfigImpl()
  • Method Details

    • getUserIntradayDirectoryName

      @NotNull @Default public String getUserIntradayDirectoryName()
      Description copied from interface: DataImportServiceConfig
      Return the name of the subdirectory to use for writing and reader user data.
      Specified by:
      getUserIntradayDirectoryName in interface DataImportServiceConfig
      Returns:
      the user data directory for this data import server. Not all service instances will use this.
    • getFilter

      @NotNull @Default public Filter getFilter()
      Description copied from interface: DataImportServiceConfig
      Get the filter to be used for:
      • TableFilter determining what data this DIS should accept
      • TableFilter and TableLocation filter determining how data is routed in a composed TableDataService (note that this filter is not used when the DIS is used directly as a TableDataService)
      Specified by:
      getFilter in interface DataImportServiceConfig
      Returns:
      the filter for this DataImportServer
    • getClaims

      @NotNull @Default public ClaimSet getClaims()
      Description copied from interface: DataImportServiceConfig
      Get the claims explicitly made by this DIS. The claims filter interacts with the data routing service and may differ from this list.
      Specified by:
      getClaims in interface DataImportServiceConfig
      Returns:
      the set of claims for this DIS
    • getWebServerParameters

      @NotNull @Default public JettyServerHelper.Parameters getWebServerParameters()
      Description copied from interface: DataImportServiceConfig
      Return configuration for an optional diagnostic web service.
      Specified by:
      getWebServerParameters in interface DataImportServiceConfig
      Returns:
      configuration for the optional web service (which might be disabled).
    • asTableDataServiceConfig

      @NotNull public TableDataServiceConfig asTableDataServiceConfig()
      Description copied from interface: DataImportServiceConfig
      Data Import Servers (with table data ports) can be used as a TableDataService. This returns a TableDataServiceConfig based on the DIS configuration.
      Specified by:
      asTableDataServiceConfig in interface DataImportServiceConfig
      Returns:
      a TableDataServiceConfig
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static DataImportServiceConfigImpl.Builder builder()
      Returns:
      a builder for creating a new instance.