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 voidincrFailedRetryCount()Increments the count for the number of failed attempts in programming this group.booleanisGroupStateAddedFirstTime()Returns the isGroupStateAddedFirstTime value.voidsetBytes(long bytes)Sets number of bytes processed by this group entry.voidsetFailedRetryCount(int failedRetryCount)Sets the count for the number of failed attempts in programming this group.voidsetIsGroupStateAddedFirstTime(boolean isGroupAddedFirstTime)Sets if group has transitioned to ADDED state for the first time.voidsetLife(long life)Sets how long this entry has been entered in the system.voidsetPackets(long packets)Sets number of packets processed by this group entry.voidsetReferenceCount(long referenceCount)Sets number of flow rules or groups referencing this group entry.voidsetState(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
-
-