public class DefaultDeviceInterfaceDescription extends java.lang.Object implements DeviceInterfaceDescription
DeviceInterfaceDescription.Mode| Constructor and Description |
|---|
DefaultDeviceInterfaceDescription(java.lang.String name,
DeviceInterfaceDescription.Mode mode,
java.util.List<VlanId> vlans,
boolean isRateLimited,
short rateLimit)
Device interface description object constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isRateLimited()
Indicates whether a rate limit has been set on the interface.
|
DeviceInterfaceDescription.Mode |
mode()
Returns the operation mode of the interface.
|
java.lang.String |
name()
Returns the name of the interface.
|
short |
rateLimit()
Returns the rate limit set on the interface bandwidth.
|
java.util.List<VlanId> |
vlans()
Returns the VLAN-IDs configured for the interface.
|
public DefaultDeviceInterfaceDescription(java.lang.String name,
DeviceInterfaceDescription.Mode mode,
java.util.List<VlanId> vlans,
boolean isRateLimited,
short rateLimit)
name - the name of the interfacemode - the operation mode of the interfacevlans - the vlan-id of the interface (none, one or multiple can be
specified based on if mode is normal, access or trunk).isRateLimited - bandwidth limit application indicationrateLimit - percentage of bandwidth limitpublic java.lang.String name()
name in interface DeviceInterfaceDescriptionpublic DeviceInterfaceDescription.Mode mode()
mode in interface DeviceInterfaceDescriptionpublic java.util.List<VlanId> vlans()
vlans in interface DeviceInterfaceDescriptionpublic boolean isRateLimited()
isRateLimited in interface DeviceInterfaceDescriptionpublic short rateLimit()
rateLimit in interface DeviceInterfaceDescriptionpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object