Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 1 | /* |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 2 | * Copyright 2014 Open Networking Laboratory |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 3 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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 |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 7 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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. |
Thomas Vachuska | 83e090e | 2014-10-22 14:25:35 -0700 | [diff] [blame] | 15 | */ |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 16 | package org.onosproject.net.flow; |
Yuta HIGUCHI | f6f50a6 | 2014-10-19 15:58:49 -0700 | [diff] [blame] | 17 | |
| 18 | |
| 19 | public 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 | } |