Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Eliminate null in StorageConfiguration.toString() #205

@zdenek-jonas

Description

@zdenek-jonas

Currently we have the following output in case of non-existent backup configuration:

one.microstream.storage.types.StorageConfiguration$Default:
one.microstream.storage.types.StorageChannelCountProvider$Default:
 channel count  = 4
one.microstream.storage.types.StorageLiveFileProvider$Default:
 base directory = one.microstream.afs.ADirectory$Default@1e6a3214("C:/ProjektDaten/EMV Bonus/Server/storage")
 file names = one.microstream.storage.types.StorageFileNameProvider$Default:
 channel directory prefix   = channel_
 storage file prefix    = channel_
 file suffix    = dat
 lockFileName   = 
one.microstream.storage.types.StorageHousekeepingController$Default:
 house keeping interval = 1000
 house keeping nano time budget = 20000000
one.microstream.storage.types.StorageEntityCacheEvaluator$Default:
 threshold  = 3600000
 timeout    = 1000000000
one.microstream.storage.types.StorageDataFileEvaluator$Default:
 fileMinimumSize    = 1048576
 fileMaximumSize    = 10485760
 minimumUseRatio    = 0.75
 cleanupHeadFile    = true
null

The last null is caused by a non-existent backup configuration. For example, it would be a good idea to write "BackupConfiguration = null" before this output.
Simply give the user the ability to know which part of the configuration is not active at all, instead of listing just null.
method:

StorageConfiguration.toString()

Requested by: Johannes Rabauer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions