Projects tigase _server server-core Issues #712
config-dump.properties for DSL format (#712)
Closed
wojciech.kapcia@tigase.net opened 8 years ago
Due Date
2016-09-29

Currently, after complete startup we are saving all available settings/properties in @etc/config-dump.properties@, which is highly useful when one wants to:

  • investigate final configuration (with defaults applied);

  • change properties and want to know what is the list of possible options (without going through the documentation).

Andrzej Wójcik (Tigase) commented 8 years ago

I created support for generation of config dump file. This file will contain current configuration for any defined bean (active and inactive) including every possible setting and default values.

However it is possible that it will not contain settings of bean which are subbeans of disabled bean as they may not be registered due to fact that parent bean is disabled or inactive.

wojciech.kapcia@tigase.net commented 8 years ago

I've checked:

componentInfo{Title=Tigase XMPP Server, Version=7.2.0-SNAPSHOT-b4451/ce6dcd8f (2016-09-19/12:32:47), Class=tigase.server.XMPPServer}

But:

  • I couldn't locate the file (I've checked etc/ and also searched fro ~ dump or properties without much luck);

  • there wasn't any information in the logs (logs/tigase-config.log@) about the file.

Andrzej Wójcik wrote:

I created support for generation of config dump file. This file will contain current configuration for any defined bean (active and inactive) including every possible setting and default values.

Just to make sure - it will contain the final configuration (i.e. defaults and then settings applied from init.properties, which may have overridden the defaults)?

However it is possible that it will not contain settings of bean which are subbeans of disabled bean as they may not be registered due to fact that parent bean is disabled or inactive.

If I understand correctly this is exactly how it works currently - only enabled components are included in this file.

wojciech.kapcia@tigase.net commented 8 years ago

Addendum - I've check wrong version and the file is generated.

However remaining questions/suggestions (log information about dump) remains.

Andrzej Wójcik (Tigase) commented 8 years ago

Added log entry when configuration dump file is created with path to created dump file.

Referenced from commit 11 months ago
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
4547
Version
tigase-server-8.0.0
Spent time
25h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#712
Please wait...
Page is in error, reload to recover