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.ConfigSnapshotHolder;
13 import org.opendaylight.controller.config.persist.api.Persister;
14 import org.opendaylight.controller.config.persist.api.PropertiesProvider;
15 import org.opendaylight.controller.config.persist.api.StorageAdapter;
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
19 import java.io.IOException;
21 public class NoOpStorageAdapter implements StorageAdapter, Persister {
22 private static final Logger logger = LoggerFactory.getLogger(NoOpStorageAdapter.class);
25 public Persister instantiate(PropertiesProvider propertiesProvider) {
26 logger.debug("instantiate called with {}", propertiesProvider);
31 public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
32 logger.debug("persistConfig called with {}", holder);
36 public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
37 logger.debug("loadLastConfig called");
38 return Optional.absent();
43 logger.debug("close called");