public class DefaultPortDescription extends AbstractDescription implements PortDescription
| Constructor and Description |
|---|
DefaultPortDescription(PortDescription base,
SparseAnnotations annotations)
Creates a port description using the supplied information.
|
DefaultPortDescription(PortNumber number,
boolean isEnabled,
Port.Type type,
long portSpeed,
SparseAnnotations... annotations)
Creates a port description using the supplied information.
|
DefaultPortDescription(PortNumber number,
boolean isEnabled,
SparseAnnotations... annotations)
Creates a port description using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
Indicates whether or not the port is up and active.
|
PortNumber |
portNumber()
Returns the port number.
|
long |
portSpeed()
Returns the current port speed in Mbps.
|
String |
toString() |
Port.Type |
type()
Returns the port type.
|
annotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotationspublic DefaultPortDescription(PortNumber number, boolean isEnabled, SparseAnnotations... annotations)
number - port numberisEnabled - port enabled stateannotations - optional key/value annotations mappublic DefaultPortDescription(PortNumber number, boolean isEnabled, Port.Type type, long portSpeed, SparseAnnotations... annotations)
number - port numberisEnabled - port enabled statetype - port typeportSpeed - port speed in Mbpsannotations - optional key/value annotations mappublic DefaultPortDescription(PortDescription base, SparseAnnotations annotations)
base - PortDescription to get basic information fromannotations - optional key/value annotations mappublic PortNumber portNumber()
PortDescriptionportNumber in interface PortDescriptionpublic boolean isEnabled()
PortDescriptionisEnabled in interface PortDescriptionpublic Port.Type type()
PortDescriptiontype in interface PortDescriptionpublic long portSpeed()
PortDescriptionportSpeed in interface PortDescriptionCopyright © 2015. All rights reserved.