Package org.onosproject.net.group
Interface GroupBucket
- 
- All Known Subinterfaces:
- StoredGroupBucketEntry
 - All Known Implementing Classes:
- DefaultGroupBucket
 
 public interface GroupBucketGroup Bucket definition. A default group Bucket is collection of Instructions that can be performed on a traffic flow. A failover group bucket is associated with a specific port or group that controls its liveness. A select group bucket contains optional weight field to define the weights among the buckets in the group.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longbytes()Returns the number of bytes processed by this group bucket.booleanhasSameParameters(GroupBucket other)Returns whether the given group bucket has the same parameters (weight, watchPort and watchGroup) as this.longpackets()Returns the number of packets processed by this group bucket.TrafficTreatmenttreatment()Returns list of Traffic instructions that are part of the bucket.GroupDescription.Typetype()Returns group type of the bucket.GroupIdwatchGroup()Returns group identifier used for liveness detection for a failover bucket.PortNumberwatchPort()Returns port number used for liveness detection for a failover bucket.shortweight()Returns weight of select group bucket.
 
- 
- 
- 
Method Detail- 
typeGroupDescription.Type type() Returns group type of the bucket.- Returns:
- GroupType group type
 
 - 
treatmentTrafficTreatment treatment() Returns list of Traffic instructions that are part of the bucket.- Returns:
- TrafficTreatment traffic instruction list
 
 - 
weightshort weight() Returns weight of select group bucket.- Returns:
- short weight associated with a bucket
 
 - 
watchPortPortNumber watchPort() Returns port number used for liveness detection for a failover bucket.- Returns:
- PortNumber port number used for liveness detection
 
 - 
watchGroupGroupId watchGroup() Returns group identifier used for liveness detection for a failover bucket.- Returns:
- GroupId group identifier to be used for liveness detection
 
 - 
packetslong packets() Returns the number of packets processed by this group bucket.- Returns:
- number of packets
 
 - 
byteslong bytes() Returns the number of bytes processed by this group bucket.- Returns:
- number of bytes
 
 - 
hasSameParametersboolean hasSameParameters(GroupBucket other) Returns whether the given group bucket has the same parameters (weight, watchPort and watchGroup) as this.- Parameters:
- other- group bucket to compare
- Returns:
- true if this bucket has the same parameters as other, false otherwise
 
 
- 
 
-