Debug logging in AbstractLeader is too chatty
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / osgi / Activator.java
1 /*
2  * Copyright (c) 2015 Brocade Communications 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 package org.opendaylight.controller.cluster.datastore.osgi;
9
10 import org.opendaylight.controller.cluster.datastore.DatastoreSnapshotRestore;
11 import org.osgi.framework.BundleActivator;
12 import org.osgi.framework.BundleContext;
13
14 /**
15  * Activator for the bundle.
16  *
17  * @author Thomas Pantelis
18  */
19 public class Activator implements BundleActivator {
20     private static final String RESTORE_DIRECTORY_PATH = "./clustered-datastore-restore";
21
22     @Override
23     public void start(BundleContext context) {
24         DatastoreSnapshotRestore.createInstance(RESTORE_DIRECTORY_PATH);
25     }
26
27     @Override
28     public void stop(BundleContext context) {
29         DatastoreSnapshotRestore.removeInstance();
30     }
31 }