Bug 1029: Remove dead code: samples/clustersession
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / packet / IDataPacketService.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 /**
11  * @file   IDataPacketService.java
12  *
13  * @brief  SAL exported Data Packet services
14  *
15  * Data Packet Services SAL provides to the components
16  */
17 package org.opendaylight.controller.sal.packet;
18
19 /**
20  * Data Packet Services SAL provides to the components
21  */
22 public interface IDataPacketService {
23     /**
24      * Transmit a data Packet. Transmission will ONLY happen if the
25      * RawPacket has the OutgoingNodeConnector set else of course
26      * transmission cannot happen.
27      *
28      * @param outPkt Packet to be transmitted out
29      */
30     void transmitDataPacket(RawPacket outPkt);
31
32     /**
33      * Decode a Data Packet received as a raw stream
34      *
35      * @param pkt Raw Packet to be decoded
36      *
37      * @return The formatted Data Packet
38      */
39     Packet decodeDataPacket(RawPacket pkt);
40
41     /**
42      * Encode a Formatted Data Packet in a raw bytestream
43      *
44      * @param pkt Formatted Data Packet to be encoded
45      *
46      * @return a RawPacket representation, good for transmission purpose
47      */
48     RawPacket encodeDataPacket(Packet pkt);
49 }