Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Minor changes to config-persister to allow for karaf
[controller.git]
/
opendaylight
/
config
/
config-persister-api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
config
/
persist
/
api
/
Persister.java
diff --git
a/opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/Persister.java
b/opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/Persister.java
index 78ce2b9718734dece2dc934befc950b0e09bc54a..5509c9943745a2cc658b0c29a3bfc90797300da8 100644
(file)
--- a/
opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/Persister.java
+++ b/
opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/Persister.java
@@
-8,32
+8,19
@@
package org.opendaylight.controller.config.persist.api;
package org.opendaylight.controller.config.persist.api;
-import com.google.common.base.Optional;
-
-import java.io.Closeable;
import java.io.IOException;
import java.io.IOException;
-import java.util.
SortedSe
t;
+import java.util.
Lis
t;
/**
* Base interface for persister implementation.
*/
/**
* Base interface for persister implementation.
*/
-public interface Persister extends Closeable {
+public interface Persister extends
Auto
Closeable {
void persistConfig(ConfigSnapshotHolder configSnapshotHolder) throws IOException;
void persistConfig(ConfigSnapshotHolder configSnapshotHolder) throws IOException;
- Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException;
-
- public static interface ConfigSnapshotHolder {
-
- /**
- * Get part of get-config document that contains just
- */
- String getConfigSnapshot();
+ List<ConfigSnapshotHolder> loadLastConfigs() throws IOException;
+ @Override
+ void close();
- /**
- * Get only required capabilities referenced by the snapshot.
- */
- SortedSet<String> getCapabilities();
- }
}
}