Class LegacyBusinessLogicConfig
-
- All Implemented Interfaces:
public final class LegacyBusinessLogicConfigConfiguration for the legacy business logic components (lion3 format).
-
-
Field Summary
Fields Modifier and Type Field Description private MetadataUpdateDelaymetadataUpdateDelayprivate EventLogBuildParser<?>buildParserprivate List<String>excludedFieldsprivate UtilRuleProducerutilRulesProducerprivate Set<String>skipAnonymizationIdsprivate Stringdeviceprivate Booleaninternalprivate StringsystemLogGroupIdprivate DurationdispatcherInitialDelayprivate IntegereventBufferSizeprivate BooleanescapeCharsInDataprivate BooleanusePersistentQueueprivate DurationdispatcherDefaultDelayprivate IntegerinMemoryBatchSizeprivate EventLogBuildTypepersistentQueueBuildTypeprivate LongpersistentQueueMaxFileBytesprivate DurationpersistentQueueMaxFileAgeprivate Function1<DispatcherExtensions<LogEvent>, Unit>reportDispatcherExtensions
-
Constructor Summary
Constructors Constructor Description LegacyBusinessLogicConfig()
-
Method Summary
Modifier and Type Method Description final MetadataUpdateDelaygetMetadataUpdateDelay()The delay strategy for metadata updates. final UnitsetMetadataUpdateDelay(MetadataUpdateDelay value)The delay strategy for metadata updates. final EventLogBuildParser<?>getBuildParser()Parser for extracting build information from event logs. final UnitsetBuildParser(EventLogBuildParser<?> value)Parser for extracting build information from event logs. final List<String>getExcludedFields()List of field names to exclude from validation. final UnitsetExcludedFields(List<String> value)List of field names to exclude from validation. final UtilRuleProducergetUtilRulesProducer()Producer for utility validation rules. final UnitsetUtilRulesProducer(UtilRuleProducer value)Producer for utility validation rules. final Set<String>getSkipAnonymizationIds()Set of group IDs that should skip anonymization. final UnitsetSkipAnonymizationIds(Set<String> value)Set of group IDs that should skip anonymization. final StringgetDevice()The device identifier included in the report. final UnitsetDevice(String value)The device identifier included in the report. final BooleangetInternal()Whether this is an internal build. final UnitsetInternal(Boolean value)Whether this is an internal build. final StringgetSystemLogGroupId()The group ID used for system log events (e.g., throttling notifications). final UnitsetSystemLogGroupId(String value)The group ID used for system log events (e.g., throttling notifications). final DurationgetDispatcherInitialDelay()Initial delay before the dispatcher starts processing events after initialization. final UnitsetDispatcherInitialDelay(Duration value)Initial delay before the dispatcher starts processing events after initialization. final IntegergetEventBufferSize()Maximum number of events to buffer when metadata is not available. final UnitsetEventBufferSize(Integer value)Maximum number of events to buffer when metadata is not available. final BooleangetEscapeCharsInData()Whether to escape non-ASCII characters in event data. final UnitsetEscapeCharsInData(Boolean value)Whether to escape non-ASCII characters in event data. final BooleangetUsePersistentQueue()Whether to use a persistent queue for event storage. final UnitsetUsePersistentQueue(Boolean value)Whether to use a persistent queue for event storage. final DurationgetDispatcherDefaultDelay()Default delay between dispatch attempts when processing the event queue. final UnitsetDispatcherDefaultDelay(Duration value)Default delay between dispatch attempts when processing the event queue. final IntegergetInMemoryBatchSize()Batch size for the in-memory queue. final UnitsetInMemoryBatchSize(Integer value)Batch size for the in-memory queue. final EventLogBuildTypegetPersistentQueueBuildType()Build type filter for the persistent queue. final UnitsetPersistentQueueBuildType(EventLogBuildType value)Build type filter for the persistent queue. final LonggetPersistentQueueMaxFileBytes()Maximum file size in bytes for persistent queue files. final UnitsetPersistentQueueMaxFileBytes(Long value)Maximum file size in bytes for persistent queue files. final DurationgetPersistentQueueMaxFileAge()Maximum age for persistent queue files. final UnitsetPersistentQueueMaxFileAge(Duration value)Maximum age for persistent queue files. final Function1<DispatcherExtensions<LogEvent>, Unit>getReportDispatcherExtensions()Extension configuration for the report dispatcher. final UnitsetReportDispatcherExtensions(Function1<DispatcherExtensions<LogEvent>, Unit> value)Extension configuration for the report dispatcher. final Unitcheck()-
-
Method Detail
-
getMetadataUpdateDelay
final MetadataUpdateDelay getMetadataUpdateDelay()
The delay strategy for metadata updates. Controls how frequently metadata is refreshed from the remote server. Defaults to MetadataUpdateDelay.LONG.
-
setMetadataUpdateDelay
final Unit setMetadataUpdateDelay(MetadataUpdateDelay value)
The delay strategy for metadata updates. Controls how frequently metadata is refreshed from the remote server. Defaults to MetadataUpdateDelay.LONG.
-
getBuildParser
final EventLogBuildParser<?> getBuildParser()
Parser for extracting build information from event logs. Defaults to DEFAULT_BUILD_PARSER.
-
setBuildParser
final Unit setBuildParser(EventLogBuildParser<?> value)
Parser for extracting build information from event logs. Defaults to DEFAULT_BUILD_PARSER.
-
getExcludedFields
final List<String> getExcludedFields()
List of field names to exclude from validation. Events containing these fields will have them ignored during the validation process. Defaults to an empty list.
-
setExcludedFields
final Unit setExcludedFields(List<String> value)
List of field names to exclude from validation. Events containing these fields will have them ignored during the validation process. Defaults to an empty list.
-
getUtilRulesProducer
final UtilRuleProducer getUtilRulesProducer()
Producer for utility validation rules. Used to create validation rules for special fields. Defaults to ValidationSimpleRuleFactory.REJECTING_UTIL_URL_PRODUCER.
-
setUtilRulesProducer
final Unit setUtilRulesProducer(UtilRuleProducer value)
Producer for utility validation rules. Used to create validation rules for special fields. Defaults to ValidationSimpleRuleFactory.REJECTING_UTIL_URL_PRODUCER.
-
getSkipAnonymizationIds
final Set<String> getSkipAnonymizationIds()
Set of group IDs that should skip anonymization. Events from these groups will not be anonymized even when anonymization is enabled. Defaults to an empty set.
-
setSkipAnonymizationIds
final Unit setSkipAnonymizationIds(Set<String> value)
Set of group IDs that should skip anonymization. Events from these groups will not be anonymized even when anonymization is enabled. Defaults to an empty set.
-
getDevice
final String getDevice()
The device identifier included in the report. This is a required field and must be set.
-
setDevice
final Unit setDevice(String value)
The device identifier included in the report. This is a required field and must be set.
-
getInternal
final Boolean getInternal()
Whether this is an internal build. When
true, the report is marked as coming from an internal build. Defaults tofalse.
-
setInternal
final Unit setInternal(Boolean value)
Whether this is an internal build. When
true, the report is marked as coming from an internal build. Defaults tofalse.
-
getSystemLogGroupId
final String getSystemLogGroupId()
The group ID used for system log events (e.g., throttling notifications). Defaults to
"system.log".
-
setSystemLogGroupId
final Unit setSystemLogGroupId(String value)
The group ID used for system log events (e.g., throttling notifications). Defaults to
"system.log".
-
getDispatcherInitialDelay
final Duration getDispatcherInitialDelay()
Initial delay before the dispatcher starts processing events after initialization. Defaults to 3 minutes.
-
setDispatcherInitialDelay
final Unit setDispatcherInitialDelay(Duration value)
Initial delay before the dispatcher starts processing events after initialization. Defaults to 3 minutes.
-
getEventBufferSize
final Integer getEventBufferSize()
Maximum number of events to buffer when metadata is not available. Defaults to 5000.
-
setEventBufferSize
final Unit setEventBufferSize(Integer value)
Maximum number of events to buffer when metadata is not available. Defaults to 5000.
-
getEscapeCharsInData
final Boolean getEscapeCharsInData()
Whether to escape non-ASCII characters in event data. When
true, special characters in the data fields are escaped. Defaults totrue.
-
setEscapeCharsInData
final Unit setEscapeCharsInData(Boolean value)
Whether to escape non-ASCII characters in event data. When
true, special characters in the data fields are escaped. Defaults totrue.
-
getUsePersistentQueue
final Boolean getUsePersistentQueue()
Whether to use a persistent queue for event storage. When
true, events are persisted to disk; whenfalse, an in-memory queue is used. Defaults totrue.
-
setUsePersistentQueue
final Unit setUsePersistentQueue(Boolean value)
Whether to use a persistent queue for event storage. When
true, events are persisted to disk; whenfalse, an in-memory queue is used. Defaults totrue.
-
getDispatcherDefaultDelay
final Duration getDispatcherDefaultDelay()
Default delay between dispatch attempts when processing the event queue. Defaults to 3 minutes.
-
setDispatcherDefaultDelay
final Unit setDispatcherDefaultDelay(Duration value)
Default delay between dispatch attempts when processing the event queue. Defaults to 3 minutes.
-
getInMemoryBatchSize
final Integer getInMemoryBatchSize()
Batch size for the in-memory queue. Only used when usePersistentQueue is
false. Defaults to 100.
-
setInMemoryBatchSize
final Unit setInMemoryBatchSize(Integer value)
Batch size for the in-memory queue. Only used when usePersistentQueue is
false. Defaults to 100.
-
getPersistentQueueBuildType
final EventLogBuildType getPersistentQueueBuildType()
Build type filter for the persistent queue. Controls which build types are included in persistence. Only used when usePersistentQueue is
true. Defaults to EventLogBuildType.ALL.
-
setPersistentQueueBuildType
final Unit setPersistentQueueBuildType(EventLogBuildType value)
Build type filter for the persistent queue. Controls which build types are included in persistence. Only used when usePersistentQueue is
true. Defaults to EventLogBuildType.ALL.
-
getPersistentQueueMaxFileBytes
final Long getPersistentQueueMaxFileBytes()
Maximum file size in bytes for persistent queue files. When a file exceeds this size, a new file is created. Only used when usePersistentQueue is
true. Defaults to 100 bytes.
-
setPersistentQueueMaxFileBytes
final Unit setPersistentQueueMaxFileBytes(Long value)
Maximum file size in bytes for persistent queue files. When a file exceeds this size, a new file is created. Only used when usePersistentQueue is
true. Defaults to 100 bytes.
-
getPersistentQueueMaxFileAge
final Duration getPersistentQueueMaxFileAge()
Maximum age for persistent queue files. Files older than this duration may be cleaned up. Only used when usePersistentQueue is
true. Defaults to 7 days.
-
setPersistentQueueMaxFileAge
final Unit setPersistentQueueMaxFileAge(Duration value)
Maximum age for persistent queue files. Files older than this duration may be cleaned up. Only used when usePersistentQueue is
true. Defaults to 7 days.
-
getReportDispatcherExtensions
final Function1<DispatcherExtensions<LogEvent>, Unit> getReportDispatcherExtensions()
Extension configuration for the report dispatcher. Allows customizing dispatcher behavior through extension points such as event transformation, filtering, or additional processing. Defaults to no extensions.
-
setReportDispatcherExtensions
final Unit setReportDispatcherExtensions(Function1<DispatcherExtensions<LogEvent>, Unit> value)
Extension configuration for the report dispatcher. Allows customizing dispatcher behavior through extension points such as event transformation, filtering, or additional processing. Defaults to no extensions.
-
-
-
-