Projects tigase _server server-core Issues #704
Improve DSL configuration format (#704)
Andrzej Wójcik (Tigase) opened 9 years ago
Due Date
2016-08-30

A this point DSL configuration works well, however it is not possible to easily find bean definition stored in memory and distinguish it in config file. Also it is not possible to define bean as exportable from config file.

We need to improve format of configuration stored in memory for faster lookup and add improve support for defining beans in DSL config file.

  • Andrzej Wójcik (Tigase) commented 9 years ago

    I improved DSL format and implemented new bean configuration which uses objects read from DSL file instead of single larger property map. This object based configuration storage improves performance of configuration lookup during configuration of beans.

    During improving DSL format I decided to check converter used to convert configuration from property file to DSL file. I found few issues in it - some related to changes in DSL format and some were not supported cases - and fixed found issues.

    Now improved DSL format looks like this:

    --debug = 'server,xmpp.impl'
    --new-connections-throttling = '5290:1100'
    --cluster-mode = true
    --virt-hosts = zeus,test
    
    config-type = --gen-config-def
    
    dataSource {
        default() {
            uri = 'jdbc:postgresql://127.0.0.1/tigase?user=test&password=test&autoCreateUser=true'
        }
    }
    
    sess-man {
        message-archive-xep-0136 (class: 'tigase.archive.MessageArchivePlugin') { }
    }
    
    c2s {
        beans = 'urn:xmpp:sm:3'
    }
    
    message-archive (class: 'tigase.archive.MessageArchiveComponent') { }
    
  • Andrzej Wójcik (Tigase) commented 9 years ago

    Unification of port configuration between ConnectionManager and HTTP API component

  • Andrzej Wójcik (Tigase) commented 9 years ago

    Added support for setting null as value and overriding default value

  • Andrzej Wójcik (Tigase) commented 9 years ago

    I think we can close it as I think DSL format is now ready.

    I added format description to admin guide for Tigase XMPP Server 7.2.0 in task #4481

issue 1 of 1
Type
Task
Priority
Normal
Assignee
RedmineID
4463
Version
tigase-server-8.0.0
Spent time
0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#704
Please wait...
Page is in error, reload to recover