Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
A bunch of miscellaneous services to get Distributed Data Store ready for deployment
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
DistributedDataStore.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java
index 4964b92ab75a0d3d7f85c5404c22e0df7c80fbff..3c760f35b8a671be81239e48ef6936a1e065c065 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java
@@
-32,7
+32,7
@@
import org.slf4j.LoggerFactory;
/**
*
*/
/**
*
*/
-public class DistributedDataStore implements DOMStore, SchemaContextListener {
+public class DistributedDataStore implements DOMStore, SchemaContextListener
, AutoCloseable
{
private static final Logger
LOG = LoggerFactory.getLogger(DistributedDataStore.class);
private static final Logger
LOG = LoggerFactory.getLogger(DistributedDataStore.class);
@@
-95,4
+95,9
@@
public class DistributedDataStore implements DOMStore, SchemaContextListener {
actorContext.getShardManager().tell(
new UpdateSchemaContext(schemaContext), null);
}
actorContext.getShardManager().tell(
new UpdateSchemaContext(schemaContext), null);
}
+
+ @Override public void close() throws Exception {
+ actorContext.shutdown();
+
+ }
}
}