public interface PortPairGroup
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PortPairGroup.Builder
A port pair group builder..
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoad(PortPairId portPairId)
Adds the load on the given port pair id.
|
String |
description()
Returns the description of this port pair group.
|
boolean |
exactMatch(PortPairGroup portPairGroup)
Returns whether this port pair group is an exact match to the
port pair group given in the argument.
|
int |
getLoad(PortPairId portPairId)
Get the load on the given port pair id.
|
String |
name()
Returns the name of this port pair group.
|
PortPairGroupId |
portPairGroupId()
Returns the ID of this port pair group.
|
Map<PortPairId,Integer> |
portPairLoadMap()
Get the map of port pair id and its load.
|
List<PortPairId> |
portPairs()
Returns the list of port pairs associated with this port pair group.
|
void |
resetLoad()
Reset the load for all the port pairs in the group.
|
TenantId |
tenantId()
Returns the tenant id of this port pair group.
|
PortPairGroupId portPairGroupId()
TenantId tenantId()
String name()
String description()
List<PortPairId> portPairs()
void addLoad(PortPairId portPairId)
portPairId - port pair id.void resetLoad()
int getLoad(PortPairId portPairId)
portPairId - port pair idMap<PortPairId,Integer> portPairLoadMap()
boolean exactMatch(PortPairGroup portPairGroup)
Exact match means the Port pairs match with the given port pair group. It does not consider the port pair group id, name and description.
portPairGroup - other port pair group to match against