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.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
16 import java.io.IOException;
18 public class NoOpStorageAdapter implements StorageAdapter {
19 private static final Logger logger = LoggerFactory.getLogger(NoOpStorageAdapter.class);
22 public void setProperties(PropertiesProvider propertiesProvider) {
23 logger.debug("setProperties called with {}", propertiesProvider);
27 public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
28 logger.debug("persistConfig called with {}", holder);
32 public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
33 logger.debug("loadLastConfig called");
34 return Optional.absent();
38 public void close() throws IOException {
39 logger.debug("close called");