Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 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 | */ |
| 16 | package org.onosproject.pcep.controller; |
| 17 | |
| 18 | /** |
| 19 | * The representation for PCEP packet statistics. |
| 20 | */ |
| 21 | public 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 | */ |
SureshBR | 8553b3f | 2015-08-27 19:43:36 +0530 | [diff] [blame] | 28 | int outPacketCount(); |
Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 29 | |
| 30 | /** |
| 31 | * Returns the count for no of packets received. |
| 32 | * |
| 33 | * @return int value of no of packets sent |
| 34 | */ |
SureshBR | 8553b3f | 2015-08-27 19:43:36 +0530 | [diff] [blame] | 35 | int inPacketCount(); |
Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 36 | |
| 37 | /** |
| 38 | * Returns the count for no of wrong packets received. |
| 39 | * |
| 40 | * @return int value of no of wrong packets received |
| 41 | */ |
SureshBR | 8553b3f | 2015-08-27 19:43:36 +0530 | [diff] [blame] | 42 | int wrongPacketCount(); |
SureshBR | 25058b7 | 2015-08-13 13:05:06 +0530 | [diff] [blame] | 43 | |
| 44 | /** |
Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 45 | * Returns the time value. |
| 46 | * |
| 47 | * @return long value of time |
| 48 | */ |
SureshBR | 8553b3f | 2015-08-27 19:43:36 +0530 | [diff] [blame] | 49 | long getTime(); |
Phaneendra Manda | 1c0061d | 2015-08-06 12:29:38 +0530 | [diff] [blame] | 50 | } |