Initial Alivenessmonitor code
[vpnservice.git] / alivenessmonitor / alivenessmonitor-impl / src / main / java / org / opendaylight / vpnservice / alivenessmonitor / internal / AlivenessProtocolHandler.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.alivenessmonitor.internal;
9
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;
13
14 /**
15  * Protocol specific Handler interface defined by the Aliveness monitor service
16  * Handler will be registered with Alivnessmonitor service along with the protocol type
17  * it supports.
18  *
19  */
20 public interface AlivenessProtocolHandler {
21
22     Class<?> getPacketClass();
23
24     String handlePacketIn(Packet protocolPacket, PacketReceived packetReceived);
25
26     void sendPacketOut(MonitoringInfo monitorInfo);
27
28     String getUniqueMonitoringKey(MonitoringInfo monitorInfo);
29 }