2 * Copyright (c) 2015 Brocade Communications 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.cluster.datastore.osgi;
10 import org.opendaylight.controller.cluster.datastore.DatastoreSnapshotRestore;
11 import org.osgi.framework.BundleActivator;
12 import org.osgi.framework.BundleContext;
15 * Activator for the bundle.
17 * @author Thomas Pantelis
19 public class Activator implements BundleActivator {
20 private static final String RESTORE_DIRECTORY_PATH = "./clustered-datastore-restore";
23 public void start(BundleContext context) {
24 DatastoreSnapshotRestore.createInstance(RESTORE_DIRECTORY_PATH);
28 public void stop(BundleContext context) {
29 DatastoreSnapshotRestore.removeInstance();