Package org.onosproject.net.group
Interface StoredGroupEntry
-
- All Superinterfaces:
Group
,GroupDescription
,PiTranslatable
- All Known Implementing Classes:
DefaultGroup
public interface StoredGroupEntry extends Group
Interface that defines set methods for a group entry that is stored in the system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.group.Group
Group.GroupState
-
Nested classes/interfaces inherited from interface org.onosproject.net.group.GroupDescription
GroupDescription.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
incrFailedRetryCount()
Increments the count for the number of failed attempts in programming this group.boolean
isGroupStateAddedFirstTime()
Returns the isGroupStateAddedFirstTime value.void
setBytes(long bytes)
Sets number of bytes processed by this group entry.void
setFailedRetryCount(int failedRetryCount)
Sets the count for the number of failed attempts in programming this group.void
setIsGroupStateAddedFirstTime(boolean isGroupAddedFirstTime)
Sets if group has transitioned to ADDED state for the first time.void
setLife(long life)
Sets how long this entry has been entered in the system.void
setPackets(long packets)
Sets number of packets processed by this group entry.void
setReferenceCount(long referenceCount)
Sets number of flow rules or groups referencing this group entry.void
setState(Group.GroupState newState)
Sets the new state for this entry.-
Methods inherited from interface org.onosproject.net.group.Group
age, bytes, failedRetryCount, id, life, packets, referenceCount, state
-
Methods inherited from interface org.onosproject.net.group.GroupDescription
appCookie, appId, buckets, deviceId, givenGroupId, type
-
-
-
-
Method Detail
-
setState
void setState(Group.GroupState newState)
Sets the new state for this entry.- Parameters:
newState
- new group entry state.
-
setIsGroupStateAddedFirstTime
void setIsGroupStateAddedFirstTime(boolean isGroupAddedFirstTime)
Sets if group has transitioned to ADDED state for the first time. This is to differentiate state transitions "from PENDING_ADD to ADDED" and "from PENDING_UPDATE to ADDED". For internal use only.- Parameters:
isGroupAddedFirstTime
- true if group moves to ADDED state for the first time.
-
isGroupStateAddedFirstTime
boolean isGroupStateAddedFirstTime()
Returns the isGroupStateAddedFirstTime value. For internal use only.- Returns:
- isGroupStateAddedFirstTime value
-
setLife
void setLife(long life)
Sets how long this entry has been entered in the system.- Parameters:
life
- epoch time
-
setPackets
void setPackets(long packets)
Sets number of packets processed by this group entry.- Parameters:
packets
- a long value
-
setBytes
void setBytes(long bytes)
Sets number of bytes processed by this group entry.- Parameters:
bytes
- a long value
-
setReferenceCount
void setReferenceCount(long referenceCount)
Sets number of flow rules or groups referencing this group entry.- Parameters:
referenceCount
- reference count
-
incrFailedRetryCount
void incrFailedRetryCount()
Increments the count for the number of failed attempts in programming this group.
-
setFailedRetryCount
void setFailedRetryCount(int failedRetryCount)
Sets the count for the number of failed attempts in programming this group.- Parameters:
failedRetryCount
- count for number of failed attempts in programming this group
-
-