blob: 1f0f737fa5309acb566f412d3845d459148d7e89 [file] [log] [blame]
boyoung21c5f5f42018-09-27 20:29:41 +09001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.openstacktelemetry.api;
17
Jian Li69600e02018-12-24 13:21:18 +090018import java.nio.ByteBuffer;
19import java.util.Set;
20
boyoung21c5f5f42018-09-27 20:29:41 +090021/**
Jian Li69600e02018-12-24 13:21:18 +090022 * Telemetry codec interface.
boyoung21c5f5f42018-09-27 20:29:41 +090023 */
Jian Li69600e02018-12-24 13:21:18 +090024public interface TelemetryCodec {
25
26 /**
27 * Encodes a collection flow infos into byte buffer.
28 *
29 * @param flowInfos a collection of flow info
30 * @return encoded byte buffer
31 */
32 ByteBuffer encode(Set<FlowInfo> flowInfos);
boyoung21c5f5f42018-09-27 20:29:41 +090033}