Package ch.rswk.meta.engine
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable LoggingService.LoggingServiceAlertConfig
The field for thealert
record component.The field for theloggers
record component.private final String
The field for theluceneIndexDir
record component.private final int
The field for theretention
record component.private final @Nullable List
<LoggingService.LoggingServiceRetentionPathConfig> The field for theretentionPaths
record component.The field for theunhealthyFiles
record component. -
Constructor Summary
ConstructorsConstructorDescriptionLoggingServiceConfig
(@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 aLoggingServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable LoggingService.LoggingServiceAlertConfig
alert()
Returns the value of thealert
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.loggers()
Returns the value of theloggers
record component.Returns the value of theluceneIndexDir
record component.int
Returns the value of theretention
record component.Returns the value of theretentionPaths
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunhealthyFiles
record component.
-
Field Details
-
alert
The field for thealert
record component. -
loggers
The field for theloggers
record component. -
luceneIndexDir
The field for theluceneIndexDir
record component. -
retention
private final int retentionThe field for theretention
record component. -
retentionPaths
The field for theretentionPaths
record component. -
unhealthyFiles
The field for theunhealthyFiles
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 aLoggingServiceConfig
record class.- Parameters:
alert
- the value for thealert
record componentloggers
- the value for theloggers
record componentluceneIndexDir
- the value for theluceneIndexDir
record componentretention
- the value for theretention
record componentretentionPaths
- the value for theretentionPaths
record componentunhealthyFiles
- the value for theunhealthyFiles
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
alert
Returns the value of thealert
record component.- Returns:
- the value of the
alert
record component
-
loggers
Returns the value of theloggers
record component.- Returns:
- the value of the
loggers
record component
-
luceneIndexDir
Returns the value of theluceneIndexDir
record component.- Returns:
- the value of the
luceneIndexDir
record component
-
retention
public int retention()Returns the value of theretention
record component.- Returns:
- the value of the
retention
record component
-
retentionPaths
Returns the value of theretentionPaths
record component.- Returns:
- the value of the
retentionPaths
record component
-
unhealthyFiles
Returns the value of theunhealthyFiles
record component.- Returns:
- the value of the
unhealthyFiles
record component
-