public class DefaultTypedFlowEntry extends DefaultFlowEntry implements TypedStoredFlowEntry
DefaultFlowRule.Builder
TypedStoredFlowEntry.FlowLiveType
FlowEntry.FlowEntryState
FlowRule.Builder, FlowRule.FlowRemoveReason
DEFAULT_TABLE, MAX_PRIORITY, MAX_TIMEOUT, MIN_PRIORITY
Constructor and Description |
---|
DefaultTypedFlowEntry(FlowEntry fe)
Creates a typed flow entry from flow entry, with default flow live type(IMMEDIATE_FLOW).
|
DefaultTypedFlowEntry(FlowEntry fe,
TypedStoredFlowEntry.FlowLiveType liveType)
Creates a typed flow entry from flow entry and flow live type.
|
DefaultTypedFlowEntry(FlowRule rule)
Creates a typed flow entry from flow rule, with default flow live type(IMMEDIATE_FLOW).
|
DefaultTypedFlowEntry(FlowRule rule,
FlowEntry.FlowEntryState state,
long life,
long packets,
long bytes)
Creates a typed flow entry from flow rule and its statistics, with default flow live type(IMMEDIATE_FLOW).
|
DefaultTypedFlowEntry(FlowRule rule,
FlowEntry.FlowEntryState state,
long life,
java.util.concurrent.TimeUnit lifeTimeUnit,
long packets,
long bytes)
Creates a typed flow entry from flow rule and its statistics, with default flow live type(IMMEDIATE_FLOW).
|
DefaultTypedFlowEntry(FlowRule rule,
int errType,
int errCode,
TypedStoredFlowEntry.FlowLiveType liveType)
Creates a typed flow entry from flow rule, error code and flow live type.
|
DefaultTypedFlowEntry(FlowRule rule,
TypedStoredFlowEntry.FlowLiveType liveType)
Creates a typed flow entry from flow rule and flow live type.
|
Modifier and Type | Method and Description |
---|---|
TypedStoredFlowEntry.FlowLiveType |
flowLiveType()
Gets the flow live type for this entry.
|
void |
setFlowLiveType(TypedStoredFlowEntry.FlowLiveType liveType)
Sets the new flow live type for this entry.
|
java.lang.String |
toString() |
bytes, errCode, errType, lastSeen, life, life, liveType, packets, setBytes, setLastSeen, setLife, setLife, setLiveType, setPackets, setState, state
appId, builder, created, deviceId, equals, exactMatch, groupId, hardTimeout, hashCode, id, isPermanent, payLoad, priority, reason, selector, table, tableId, timeout, treatment
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setBytes, setLastSeen, setLife, setLife, setLiveType, setPackets, setState
public DefaultTypedFlowEntry(FlowRule rule, FlowEntry.FlowEntryState state, long life, java.util.concurrent.TimeUnit lifeTimeUnit, long packets, long bytes)
rule
- the flow rulestate
- the flow statelife
- the flow duration since creationlifeTimeUnit
- the time unit of lifepackets
- the flow packets countbytes
- the flow bytes countpublic DefaultTypedFlowEntry(FlowRule rule, FlowEntry.FlowEntryState state, long life, long packets, long bytes)
rule
- the flow rulestate
- the flow statelife
- the flow duration since creationpackets
- the flow packets countbytes
- the flow bytes countpublic DefaultTypedFlowEntry(FlowRule rule)
rule
- the flow rulepublic DefaultTypedFlowEntry(FlowEntry fe)
fe
- the flow entrypublic DefaultTypedFlowEntry(FlowRule rule, TypedStoredFlowEntry.FlowLiveType liveType)
rule
- the flow ruleliveType
- the flow live typepublic DefaultTypedFlowEntry(FlowEntry fe, TypedStoredFlowEntry.FlowLiveType liveType)
fe
- the flow ruleliveType
- the flow live typepublic DefaultTypedFlowEntry(FlowRule rule, int errType, int errCode, TypedStoredFlowEntry.FlowLiveType liveType)
rule
- the flow ruleerrType
- the flow error typeerrCode
- the flow error codeliveType
- the flow live typepublic TypedStoredFlowEntry.FlowLiveType flowLiveType()
TypedStoredFlowEntry
flowLiveType
in interface TypedStoredFlowEntry
public void setFlowLiveType(TypedStoredFlowEntry.FlowLiveType liveType)
TypedStoredFlowEntry
setFlowLiveType
in interface TypedStoredFlowEntry
liveType
- new flow live type.public java.lang.String toString()
toString
in class DefaultFlowEntry