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
9 package org.opendaylight.controller.netconf.persist.impl;
11 import com.google.common.base.Optional;
12 import org.opendaylight.controller.config.persist.api.storage.StorageAdapter;
13 import org.opendaylight.controller.config.stat.ConfigProvider;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
17 import java.io.IOException;
19 public class NoOpStorageAdapter implements StorageAdapter {
20 private static final Logger logger = LoggerFactory.getLogger(NoOpStorageAdapter.class);
23 public void setProperties(ConfigProvider configProvider) {
24 logger.debug("setProperties called with {}", configProvider);
28 public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
29 logger.debug("persistConfig called with {}", holder);
33 public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
34 logger.debug("loadLastConfig called");
35 return Optional.absent();
39 public void close() throws IOException {
40 logger.debug("close called");