Bug 2135: Create ShardInformation on startup 33/12033/5
authortpantelis <tpanteli@brocade.com>
Wed, 8 Oct 2014 11:21:43 +0000 (07:21 -0400)
committertpantelis <tpanteli@brocade.com>
Thu, 9 Oct 2014 01:55:51 +0000 (21:55 -0400)
commit5c5b77dab25a38f8b0f9c09dc7aab9420f8dcb48
tree3b96e3d33f726b6804d27d1391f6c9a5d13dfc2f
parentc66e710cd61119c4779784571e59cdc3b490673f
Bug 2135: Create ShardInformation on startup

Modified the ShardManager to create the ShardInformation map on startup,
but without creating the shard actors yet, instead of when the SchemaContext is initialized.

When the SchemaContext is fully initialized then create the shard actors.

On FindLocalShard and FindPrimaryShard messages, only return a valid
response if the shard actor is created and it's initialized.

Change-Id: I361f2af9e53878f62c5890350afd7a5f2877b95c
Signed-off-by: tpantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/InMemoryJournal.java