Package org.onosproject.net.flow
Interface StoredFlowEntry
-
- All Superinterfaces:
FlowEntry
,FlowRule
,PiTranslatable
- All Known Subinterfaces:
TypedStoredFlowEntry
- All Known Implementing Classes:
DefaultFlowEntry
,DefaultTypedFlowEntry
public interface StoredFlowEntry extends FlowEntry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.FlowEntry
FlowEntry.FlowEntryState, FlowEntry.FlowLiveType
-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.FlowRule
FlowRule.Builder, FlowRule.FlowRemoveReason
-
-
Field Summary
-
Fields inherited from interface org.onosproject.net.flow.FlowRule
DEFAULT_TABLE, MAX_PRIORITY, MAX_TIMEOUT, MIN_PRIORITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setBytes(long bytes)
Number of bytes seen by this rule.void
setLastSeen()
Sets the last active epoch time.void
setLife(long lifeSecs)
Sets how long this entry has been entered in the system.void
setLife(long life, java.util.concurrent.TimeUnit timeUnit)
Sets how long this entry has been entered in the system.void
setLiveType(FlowEntry.FlowLiveType liveType)
Sets the flow live type, i.e., IMMEDIATE, SHORT, MID, LONG.void
setPackets(long packets)
Number of packets seen by this entry.void
setState(FlowEntry.FlowEntryState newState)
Sets the new state for this entry.
-
-
-
Method Detail
-
setLastSeen
void setLastSeen()
Sets the last active epoch time.
-
setState
void setState(FlowEntry.FlowEntryState newState)
Sets the new state for this entry.- Parameters:
newState
- new flow entry state.
-
setLife
void setLife(long lifeSecs)
Sets how long this entry has been entered in the system.- Parameters:
lifeSecs
- seconds
-
setLife
void setLife(long life, java.util.concurrent.TimeUnit timeUnit)
Sets how long this entry has been entered in the system.- Parameters:
life
- timetimeUnit
- unit of time
-
setLiveType
void setLiveType(FlowEntry.FlowLiveType liveType)
Sets the flow live type, i.e., IMMEDIATE, SHORT, MID, LONG.- Parameters:
liveType
- flow live type
-
setPackets
void setPackets(long packets)
Number of packets seen by this entry.- Parameters:
packets
- a long value
-
setBytes
void setBytes(long bytes)
Number of bytes seen by this rule.- Parameters:
bytes
- a long value
-
-