/* * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netvirt.vpnmanager; import com.google.common.util.concurrent.ListenableFuture; import java.util.List; import java.util.concurrent.Callable; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager; import org.opendaylight.netvirt.neutronvpn.interfaces.INeutronVpnManager; import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.AlivenessMonitorService; import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService; public class ArpMonitorStartTask implements Callable>> { private MacEntry macEntry; private Long arpMonitorProfileId; private DataBroker databroker; private AlivenessMonitorService alivenessManager; private OdlInterfaceRpcService interfaceRpc; private INeutronVpnManager neutronVpnService; private IInterfaceManager interfaceManager; public ArpMonitorStartTask(MacEntry macEntry, Long profileId, DataBroker databroker, AlivenessMonitorService alivenessManager, OdlInterfaceRpcService interfaceRpc, INeutronVpnManager neutronVpnService, IInterfaceManager interfaceManager) { this.macEntry = macEntry; this.arpMonitorProfileId = profileId; this.databroker = databroker; this.alivenessManager = alivenessManager; this.interfaceRpc = interfaceRpc; this.neutronVpnService = neutronVpnService; this.interfaceManager = interfaceManager; } @Override public List> call() { AlivenessMonitorUtils.startArpMonitoring(macEntry, arpMonitorProfileId, alivenessManager, databroker, interfaceRpc, neutronVpnService, interfaceManager); return null; } }