2 * Copyright (c) 2013 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.netconf.persist.impl;
10 import com.google.common.base.Optional;
11 import org.opendaylight.controller.config.persist.api.ConfigSnapshotHolder;
12 import org.opendaylight.controller.config.persist.api.Persister;
13 import org.opendaylight.controller.config.persist.api.PropertiesProvider;
14 import org.opendaylight.controller.config.persist.api.StorageAdapter;
16 import java.io.IOException;
18 public class DummyAdapter implements StorageAdapter, Persister {
20 static int persist = 0;
23 public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
30 public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
32 return Optional.absent();
38 public Persister instantiate(PropertiesProvider propertiesProvider) {