public class Bucket extends OpenflowStructure
groups; Since 1.1.
The weight of the bucket is only defined for select groups, and support is optional. The bucket's share of the traffic processed by the group is defined by the individual bucket's weight divided by the sum of the bucket weights in the group.
The watch port and
watch group are only required for fast failover
groups, and may be optionally implemented for other group types. These
fields indicate the port and/or group whose liveness controls whether
this bucket is a candidate for forwarding. For fast failover groups, the
first bucket defined is the highest-priority bucket, and only the
highest-priority live bucket is used.
version| Constructor and Description |
|---|
Bucket(ProtocolVersion pv)
Constructs a bucket.
|
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
getActions()
Returns the actions associated with this bucket; Since 1.1.
|
GroupId |
getWatchGroup()
Returns the ID of the watch group.
|
BigPortNumber |
getWatchPort()
Returns the watch port id; Since 1.1.
|
int |
getWeight()
Returns the weight of this bucket; Since 1.1.
|
String |
toDebugString()
Returns a multi-line representation of this bucket.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this bucket.
|
String |
toString() |
getVersion, hex, hex, validatepublic Bucket(ProtocolVersion pv)
pv - the protocol versionpublic String toString()
toString in class OpenflowStructurepublic String toDebugString()
toDebugString in interface StructuretoDebugString in class OpenflowStructurepublic String toDebugString(int indent)
indent - number of spaces to prefix each line withpublic int getWeight()
public BigPortNumber getWatchPort()
public GroupId getWatchGroup()
Copyright © 2014. All Rights Reserved.