2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.persist.api;
10 import java.util.SortedSet;
12 public class ConfigSnapshotHolderImpl implements ConfigSnapshotHolder {
14 private final String snapshot;
15 private final SortedSet<String> caps;
16 private final String fileName;
18 public ConfigSnapshotHolderImpl(final String configSnapshot,
19 final SortedSet<String> capabilities,
20 final String fileName) {
21 this.snapshot = configSnapshot;
22 this.caps = capabilities;
23 this.fileName = fileName;
27 public String getConfigSnapshot() {
32 public SortedSet<String> getCapabilities() {
36 public String getFileName() {
41 public String toString() {
42 return "snapshot='" + "ConfigSnapshotHolderImpl{"
43 + snapshot + '\'' + ", caps="
44 + caps + ", fileName='"
45 + fileName + '\'' + '}';