2 * Copyright (c) 2015 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
8 package org.opendaylight.vpnservice.alivenessmonitor.internal;
10 import org.opendaylight.controller.liblldp.Packet;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.alivenessmonitor.rev150629.monitor.configs.MonitoringInfo;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived;
15 * Protocol specific Handler interface defined by the Aliveness monitor service
16 * Handler will be registered with Alivnessmonitor service along with the protocol type
20 public interface AlivenessProtocolHandler {
22 Class<?> getPacketClass();
24 String handlePacketIn(Packet protocolPacket, PacketReceived packetReceived);
26 void sendPacketOut(MonitoringInfo monitorInfo);
28 String getUniqueMonitoringKey(MonitoringInfo monitorInfo);