Merge "Refactor persister. Remove obsolete TLS netconf configuration. Prefix all...
[controller.git] / opendaylight / netconf / config-persister-impl / src / main / java / org / opendaylight / controller / netconf / persist / impl / NoOpStorageAdapter.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.netconf.persist.impl;
10
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;
15
16 import java.io.IOException;
17
18 public class NoOpStorageAdapter implements StorageAdapter {
19     private static final Logger logger = LoggerFactory.getLogger(NoOpStorageAdapter.class);
20
21     @Override
22     public void setProperties(PropertiesProvider propertiesProvider) {
23         logger.debug("setProperties called with {}", propertiesProvider);
24     }
25
26     @Override
27     public void persistConfig(ConfigSnapshotHolder holder) throws IOException {
28         logger.debug("persistConfig called with {}", holder);
29     }
30
31     @Override
32     public Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException {
33         logger.debug("loadLastConfig called");
34         return Optional.absent();
35     }
36
37     @Override
38     public void close() throws IOException {
39         logger.debug("close called");
40     }
41 }