public final class DefaultPortPairGroup extends Object implements PortPairGroup
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPortPairGroup.Builder
Builder class for Port pair group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoad(PortPairId portPairId)
Adds the load on the given port pair id.
|
static DefaultPortPairGroup.Builder |
builder()
To create an instance of the builder.
|
String |
description()
Returns the description of this port pair group.
|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
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.
|
String |
toString() |
public PortPairGroupId portPairGroupId()
PortPairGroupportPairGroupId in interface PortPairGrouppublic TenantId tenantId()
PortPairGrouptenantId in interface PortPairGrouppublic String name()
PortPairGroupname in interface PortPairGrouppublic String description()
PortPairGroupdescription in interface PortPairGrouppublic List<PortPairId> portPairs()
PortPairGroupportPairs in interface PortPairGrouppublic void addLoad(PortPairId portPairId)
PortPairGroupaddLoad in interface PortPairGroupportPairId - port pair id.public void resetLoad()
PortPairGroupresetLoad in interface PortPairGrouppublic int getLoad(PortPairId portPairId)
PortPairGroupgetLoad in interface PortPairGroupportPairId - port pair idpublic Map<PortPairId,Integer> portPairLoadMap()
PortPairGroupportPairLoadMap in interface PortPairGrouppublic boolean exactMatch(PortPairGroup portPairGroup)
PortPairGroupExact match means the Port pairs match with the given port pair group. It does not consider the port pair group id, name and description.
exactMatch in interface PortPairGroupportPairGroup - other port pair group to match againstpublic static DefaultPortPairGroup.Builder builder()