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 class
Port.Type
Represents coarse port type classification.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Element
element()
Returns the parent network element to which this port belongs.boolean
isEnabled()
Indicates whether or not the port is currently up and active.PortNumber
number()
Returns the port number.long
portSpeed()
Returns the current port speed in Mbps.Port.Type
type()
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
-
-