Package org.onosproject.net
Interface Port
-
- All Superinterfaces:
Annotated
- All Known Implementing Classes:
DefaultPort,ForwardingPort
public interface Port extends Annotated
Abstraction of a network port.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPort.TypeRepresents coarse port type classification.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Elementelement()Returns the parent network element to which this port belongs.booleanisEnabled()Indicates whether or not the port is currently up and active.PortNumbernumber()Returns the port number.longportSpeed()Returns the current port speed in Mbps.Port.Typetype()Returns the port type.-
Methods inherited from interface org.onosproject.net.Annotated
annotations
-
-
-
-
Method Detail
-
element
Element element()
Returns the parent network element to which this port belongs.- Returns:
- parent network element
-
number
PortNumber number()
Returns the port number.- Returns:
- port number
-
isEnabled
boolean isEnabled()
Indicates whether or not the port is currently up and active.- Returns:
- true if the port is operational
-
type
Port.Type type()
Returns the port type.- Returns:
- port type
-
portSpeed
long portSpeed()
Returns the current port speed in Mbps.- Returns:
- current port speed
-
-