Bug 5329: Add factory akka.conf 44/36144/1
authorTom Pantelis <tpanteli@brocade.com>
Fri, 12 Feb 2016 14:08:15 +0000 (09:08 -0500)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 11 Mar 2016 20:04:40 +0000 (20:04 +0000)
commit9d18a84b8aabf2a74fda1cadd33be44f81374eeb
tree6096877929dc04eedb3b0eee8ca148b331c6a132
parent476dee53f1e5582221ba9ebfe68854b0093635b9
Bug 5329: Add factory akka.conf

Added a factory akka.conf file that is shipped to
configuration/factory/akka.conf. This file contains all the necessary
akka settings. Modified the FileAkkaConfigurationReader to load the
existing configuration/initial/akka.conf file with the factory file as
the fallback. In this manner akka will overlay/merge the initial file
with the factory file. I pared down the initial file to only contain the
settings that users would normally set or configure to setup a cluster,
ie hostname, port, seed-nodes, roles.

In the features.xml, the factory file is configured to always overwrite
so changes are picked up on upgrade. We still preserve the initial file.

Change-Id: I8e80161e21d0ad0e26f1efa1023c670b3a5ef6bc
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit 6e76bb44514ea79524f46ff283ea0d0d4ad8c7f8)
features/mdsal/src/main/features/features.xml
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/common/actor/FileAkkaConfigurationReader.java
opendaylight/md-sal/sal-clustering-config/pom.xml
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf [new file with mode: 0644]