blob: c47791b20dada111915dc78953309893e7c2c48b [file] [log] [blame]
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08003 *
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 */
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070023public interface StoredGroupBucketEntry extends GroupBucket {
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080024 /**
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070025 * Sets number of packets processed by this group bucket entry.
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080026 *
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070027 * @param packets a long value
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080028 */
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070029 void setPackets(long packets);
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080030
31 /**
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070032 * Sets number of bytes processed by this group bucket entry.
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080033 *
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070034 * @param bytes a long value
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080035 */
Srikanth Vavilapalli10e75cd2015-04-13 16:21:24 -070036 void setBytes(long bytes);
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080037}