blob: de15732b9faea033d757765b07e05bde381a0569 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska83e090e2014-10-22 14:25:35 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska83e090e2014-10-22 14:25:35 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska83e090e2014-10-22 14:25:35 -070015 */
Yuta HIGUCHIf6f50a62014-10-19 15:58:49 -070016package org.onlab.onos.net.flow;
17
18
19public interface StoredFlowEntry extends FlowEntry {
20
21 /**
22 * Sets the last active epoch time.
23 */
24 void setLastSeen();
25
26 /**
27 * Sets the new state for this entry.
28 * @param newState new flow entry state.
29 */
30 void setState(FlowEntryState newState);
31
32 /**
33 * Sets how long this entry has been entered in the system.
34 * @param life epoch time
35 */
36 void setLife(long life);
37
38 /**
39 * Number of packets seen by this entry.
40 * @param packets a long value
41 */
42 void setPackets(long packets);
43
44 /**
45 * Number of bytes seen by this rule.
46 * @param bytes a long value
47 */
48 void setBytes(long bytes);
49
50}