Merge "Implement finding a primary based on the shard name and do basic wiring of...
[controller.git] / opendaylight / config / config-persister-api / src / main / java / org / opendaylight / controller / config / persist / api / ConfigSnapshotHolder.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.persist.api;
9
10 import java.util.SortedSet;
11
12 public interface ConfigSnapshotHolder {
13
14     /**
15      * Get XML node that should be pushed to netconf's edit-config
16      */
17     String getConfigSnapshot();
18
19
20     /**
21      * Get only required capabilities referenced by the snapshot.
22      * If no value is specified, return empty set instead of null
23      */
24     SortedSet<String> getCapabilities();
25
26 }