2 * Copyright (c) 2015 - 2017 Ericsson India Global Services Pvt Ltd. 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 * Copyright © 2018 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
11 * This program and the accompanying materials are made available under the
12 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
13 * and is available at http://www.eclipse.org/legal/epl-v10.html
15 package org.opendaylight.netvirt.vpnmanager;
17 import javax.annotation.PreDestroy;
18 import javax.inject.Inject;
19 import javax.inject.Singleton;
20 import org.opendaylight.netvirt.vpnmanager.api.IVpnClusterOwnershipDriver;
23 public class VpnClusterOwnershipDriverBase implements IVpnClusterOwnershipDriver, AutoCloseable {
25 public static final String VPN_SERVICE_ENTITY = "VPN_SERVICE";
26 protected boolean amIOwner = false;
29 public VpnClusterOwnershipDriverBase() { }
33 public void close() {}
36 public boolean amIOwner() {