Implement graceful ShardManager shutdown 52/31952/8
authorTom Pantelis <tpanteli@brocade.com>
Tue, 29 Dec 2015 15:11:19 +0000 (10:11 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 8 Jan 2016 02:24:50 +0000 (02:24 +0000)
commit72a72ae745544e41603f851bf4f47087cfe521ba
tree7a073474cfa7aee8d1eab1006c522ecb48071f23
parenta4d52d3a0781ad65b543f01b0e06ad30aa1c3a95
Implement graceful ShardManager shutdown

Implemented the ShutDown message in ShardManager to issue a graceful stop
with a Shutdown message to each shard. When the stop futures complete,
the ShardManager sends a PoisionPill to itself.

The ActorContext now issues a graceful stop to the ShardManager with a
Shutdown message.

Change-Id: I13e17cc06d44f524a469cea7acfa45c3ba5e52bd
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/RemoteRpcProvider.java