blob: f7a6617f5df8fc94950634b9fbe7b1eb893d40fc [file] [log] [blame]
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08001/*
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.net.group;
17
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080018/**
19 * Generic group bucket entry representation that is stored in a
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080020 * group object. A group bucket entry provides additional info of
21 * group bucket like statistics...etc
22 */
23public interface GroupBucketEntry extends GroupBucket {
24 /**
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080025 * Returns Number of packets processed by bucket.
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080026 *
27 * @return long
28 */
29 public long packets();
30
31 /**
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080032 * Returns Number of bytes processed by bucket.
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080033 *
34 * @return long
35 */
36 public long bytes();
37}