Record Class LoggingService.LoggingServiceConfig

java.lang.Object
java.lang.Record
ch.rswk.meta.engine.LoggingService.LoggingServiceConfig
Enclosing class:
LoggingService

public static record LoggingService.LoggingServiceConfig(@Nullable LoggingService.LoggingServiceAlertConfig alert, @Nullable Map<String,String> loggers, String luceneIndexDir, int retention, @Nullable List<LoggingService.LoggingServiceRetentionPathConfig> retentionPaths, @Nullable List<String> unhealthyFiles) extends Record
  • Field Details

    • alert

      private final @Nullable LoggingService.LoggingServiceAlertConfig alert
      The field for the alert record component.
    • loggers

      private final @Nullable Map<String,String> loggers
      The field for the loggers record component.
    • luceneIndexDir

      private final String luceneIndexDir
      The field for the luceneIndexDir record component.
    • retention

      private final int retention
      The field for the retention record component.
    • retentionPaths

      private final @Nullable List<LoggingService.LoggingServiceRetentionPathConfig> retentionPaths
      The field for the retentionPaths record component.
    • unhealthyFiles

      private final @Nullable List<String> unhealthyFiles
      The field for the unhealthyFiles record component.
  • Constructor Details

    • LoggingServiceConfig

      public LoggingServiceConfig(@Nullable LoggingService.LoggingServiceAlertConfig alert, @Nullable Map<String,String> loggers, String luceneIndexDir, int retention, @Nullable List<LoggingService.LoggingServiceRetentionPathConfig> retentionPaths, @Nullable List<String> unhealthyFiles)
      Creates an instance of a LoggingServiceConfig record class.
      Parameters:
      alert - the value for the alert record component
      loggers - the value for the loggers record component
      luceneIndexDir - the value for the luceneIndexDir record component
      retention - the value for the retention record component
      retentionPaths - the value for the retentionPaths record component
      unhealthyFiles - the value for the unhealthyFiles record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • alert

      public @Nullable LoggingService.LoggingServiceAlertConfig alert()
      Returns the value of the alert record component.
      Returns:
      the value of the alert record component
    • loggers

      public @Nullable Map<String,String> loggers()
      Returns the value of the loggers record component.
      Returns:
      the value of the loggers record component
    • luceneIndexDir

      public String luceneIndexDir()
      Returns the value of the luceneIndexDir record component.
      Returns:
      the value of the luceneIndexDir record component
    • retention

      public int retention()
      Returns the value of the retention record component.
      Returns:
      the value of the retention record component
    • retentionPaths

      public @Nullable List<LoggingService.LoggingServiceRetentionPathConfig> retentionPaths()
      Returns the value of the retentionPaths record component.
      Returns:
      the value of the retentionPaths record component
    • unhealthyFiles

      public @Nullable List<String> unhealthyFiles()
      Returns the value of the unhealthyFiles record component.
      Returns:
      the value of the unhealthyFiles record component