blob: 60126a1b8fa8135f2fb2d7a30396cacdc0fa5c59 [file] [log] [blame]
Phaneendra Manda1c0061d2015-08-06 12:29:38 +05301/*
2 * Copyright 2015 Open Networking Laboratory
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.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 */
28 public int outPacketCount();
29
30 /**
31 * Returns the count for no of packets received.
32 *
33 * @return int value of no of packets sent
34 */
35 public int inPacketCount();
36
37 /**
38 * Returns the count for no of wrong packets received.
39 *
40 * @return int value of no of wrong packets received
41 */
42 public int wrongPacketCount();
43
44 /**
SureshBR25058b72015-08-13 13:05:06 +053045 * Increments the received packet counter.
46 */
47 public void addInPacket();
48
49 /**
50 * Increments the sent packet counter.
51 */
52 public void addOutPacket();
53
54 /**
55 * Increments the sent packet counter by specified value.
56 * @param value of no of packets sent
57 */
58 public void addOutPacket(int value);
59
60 /**
61 * Increments the wrong packet counter.
62 */
63 public void addWrongPacket();
64
65 /**
Phaneendra Manda1c0061d2015-08-06 12:29:38 +053066 * Returns the time value.
67 *
68 * @return long value of time
69 */
70 public long getTime();
71
72 /**
73 * Sets the time value.
74 *
75 * @param time long value of time
76 */
77 public void setTime(long time);
78
79}