Package org.onosproject.net.behaviour
Class DefaultBridgeDescription
- java.lang.Object
- 
- org.onosproject.net.behaviour.DefaultBridgeDescription
 
- 
- All Implemented Interfaces:
- Annotated,- BridgeDescription,- Description
 
 public final class DefaultBridgeDescription extends java.lang.Object implements BridgeDescription The default implementation of bridge.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDefaultBridgeDescription.Builder- 
Nested classes/interfaces inherited from interface org.onosproject.net.behaviour.BridgeDescriptionBridgeDescription.FailMode
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseAnnotationsannotations()Returns the key/value annotations.static BridgeDescription.Builderbuilder()Creates and returns a new builder instance.java.util.List<ControllerInfo>controllers()Returns OpenFlow controllers of the bridge.java.util.Optional<java.util.List<ControlProtocolVersion>>controlProtocols()Returns list of Control Protocol Versions supported on device.java.util.Optional<java.lang.String>datapathId()Returns OpenFlow datapath ID of the bridge.java.util.Optional<java.lang.String>datapathType()Returns OVSDB datapath Type of the bridge.java.util.Optional<DeviceId>deviceId()Returns OpenFlow device ID.java.util.Optional<java.lang.Boolean>disableInBand()Returns in band control is enabled or not.booleanenableLocalController()Returns whether to use local controller as an OpenFlow controller of the bridge if no controllers are specified.java.util.Optional<BridgeDescription.FailMode>failMode()Returns fail mode of the bridge.java.lang.Stringname()Returns bridge name.
 
- 
- 
- 
Method Detail- 
annotationspublic SparseAnnotations annotations() Description copied from interface:AnnotatedReturns the key/value annotations.- Specified by:
- annotationsin interface- Annotated
- Specified by:
- annotationsin interface- Description
- Returns:
- key/value annotations
 
 - 
namepublic java.lang.String name() Description copied from interface:BridgeDescriptionReturns bridge name.- Specified by:
- namein interface- BridgeDescription
- Returns:
- bridge name
 
 - 
controllerspublic java.util.List<ControllerInfo> controllers() Description copied from interface:BridgeDescriptionReturns OpenFlow controllers of the bridge. If it's empty, then no OpenFlow controllers are used for the bridge.- Specified by:
- controllersin interface- BridgeDescription
- Returns:
- set of controllers
 
 - 
enableLocalControllerpublic boolean enableLocalController() Description copied from interface:BridgeDescriptionReturns whether to use local controller as an OpenFlow controller of the bridge if no controllers are specified.- Specified by:
- enableLocalControllerin interface- BridgeDescription
- Returns:
- true to set local controller, false otherwise
 
 - 
failModepublic java.util.Optional<BridgeDescription.FailMode> failMode() Description copied from interface:BridgeDescriptionReturns fail mode of the bridge. If it's not set, the default setting of the bridge is used.- Specified by:
- failModein interface- BridgeDescription
- Returns:
- fail mode
 
 - 
datapathIdpublic java.util.Optional<java.lang.String> datapathId() Description copied from interface:BridgeDescriptionReturns OpenFlow datapath ID of the bridge. Valid only if OpenFlow controller is configured for the bridge.- Specified by:
- datapathIdin interface- BridgeDescription
- Returns:
- datapath id
 
 - 
datapathTypepublic java.util.Optional<java.lang.String> datapathType() Description copied from interface:BridgeDescriptionReturns OVSDB datapath Type of the bridge.- Specified by:
- datapathTypein interface- BridgeDescription
- Returns:
- datapath type
 
 - 
controlProtocolspublic java.util.Optional<java.util.List<ControlProtocolVersion>> controlProtocols() Description copied from interface:BridgeDescriptionReturns list of Control Protocol Versions supported on device.- Specified by:
- controlProtocolsin interface- BridgeDescription
- Returns:
- List of Control Protocol Versions enabled on bridge
 
 - 
deviceIdpublic java.util.Optional<DeviceId> deviceId() Description copied from interface:BridgeDescriptionReturns OpenFlow device ID. Valid only if OpenFlow controller is configured for the bridge.- Specified by:
- deviceIdin interface- BridgeDescription
- Returns:
- device id
 
 - 
disableInBandpublic java.util.Optional<java.lang.Boolean> disableInBand() Description copied from interface:BridgeDescriptionReturns in band control is enabled or not. If set to true, disable in-band control on the bridge regardless of controller and manager settings. If it's not set, the default setting of the bridge is used.- Specified by:
- disableInBandin interface- BridgeDescription
- Returns:
- true if in-band is disabled, false if in-band is enabled
 
 - 
builderpublic static BridgeDescription.Builder builder() Creates and returns a new builder instance.- Returns:
- new builder
 
 
- 
 
-