blob: 5a6cd41e92162f4030b1b991f49d007b78e36841 [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05303 *
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.pcep.controller;
17
18/**
19 * The representation for PCEP packet statistics.
20 */
21public interface PcepPacketStats {
22
23 /**
24 * Returns the count for no of packets sent out.
25 *
26 * @return int value of no of packets sent
27 */
SureshBR8553b3f2015-08-27 19:43:36 +053028 int outPacketCount();
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053029
30 /**
31 * Returns the count for no of packets received.
32 *
33 * @return int value of no of packets sent
34 */
SureshBR8553b3f2015-08-27 19:43:36 +053035 int inPacketCount();
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053036
37 /**
38 * Returns the count for no of wrong packets received.
39 *
40 * @return int value of no of wrong packets received
41 */
SureshBR8553b3f2015-08-27 19:43:36 +053042 int wrongPacketCount();
SureshBR25058b72015-08-13 13:05:06 +053043
44 /**
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053045 * Returns the time value.
46 *
47 * @return long value of time
48 */
SureshBR8553b3f2015-08-27 19:43:36 +053049 long getTime();
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053050}