blob: 297663f1db7b0de72789729de2804e0c13f2d786 [file] [log] [blame]
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -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
18/**
19 * Interface that defines set methods for a group entry
20 * that is stored in the system.
21 */
22public interface StoredGroupEntry extends Group {
23
24 /**
25 * Sets the new state for this entry.
26 *
27 * @param newState new group entry state.
28 */
29 void setState(Group.GroupState newState);
30
31 /**
32 * Sets how long this entry has been entered in the system.
33 *
34 * @param life epoch time
35 */
36 void setLife(long life);
37
38 /**
39 * Sets number of packets processed by this group entry.
40 *
41 * @param packets a long value
42 */
43 void setPackets(long packets);
44
45 /**
46 * Sets number of bytes processed by this group entry.
47 *
48 * @param bytes a long value
49 */
50 void setBytes(long bytes);
51
Srikanth Vavilapalli45c27c82015-01-30 12:57:56 -080052 /**
53 * Sets number of flow rules or groups referencing this group entry.
54 *
55 * @param referenceCount reference count
56 */
57 void setReferenceCount(long referenceCount);
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080058}