Package org.onosproject.net.behaviour
Class DefaultBridgeDescription.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.DefaultBridgeDescription.Builder
-
- All Implemented Interfaces:
BridgeDescription.Builder
- Enclosing class:
- DefaultBridgeDescription
public static final class DefaultBridgeDescription.Builder extends Object implements BridgeDescription.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BridgeDescription
build()
Builds an immutable bridge description.DefaultBridgeDescription.Builder
controllers(List<ControllerInfo> controllers)
Returns bridge description builder with given controllers.DefaultBridgeDescription.Builder
controlProtocols(List<ControlProtocolVersion> controlProtocols)
Returns bridge description builder with given control protocol versions.DefaultBridgeDescription.Builder
datapathId(String datapathId)
Returns bridge description builder with a given datapath ID.DefaultBridgeDescription.Builder
datapathType(String datapathType)
Returns bridge description builder with a given datapath type.DefaultBridgeDescription.Builder
disableInBand()
Returns bridge description builder with in-band control disabled.DefaultBridgeDescription.Builder
enableLocalController()
Returns bridge description builder with local controller enabled.DefaultBridgeDescription.Builder
failMode(BridgeDescription.FailMode failMode)
Returns bridge description builder with a given fail mode.DefaultBridgeDescription.Builder
name(String name)
Returns bridge description builder with a given name.
-
-
-
Method Detail
-
build
public BridgeDescription build()
Description copied from interface:BridgeDescription.Builder
Builds an immutable bridge description.- Specified by:
build
in interfaceBridgeDescription.Builder
- Returns:
- bridge description
-
name
public DefaultBridgeDescription.Builder name(String name)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with a given name.- Specified by:
name
in interfaceBridgeDescription.Builder
- Parameters:
name
- bridge name- Returns:
- bridge description builder
-
controllers
public DefaultBridgeDescription.Builder controllers(List<ControllerInfo> controllers)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with given controllers.- Specified by:
controllers
in interfaceBridgeDescription.Builder
- Parameters:
controllers
- set of controllers- Returns:
- bridge description builder
-
enableLocalController
public DefaultBridgeDescription.Builder enableLocalController()
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with local controller enabled.- Specified by:
enableLocalController
in interfaceBridgeDescription.Builder
- Returns:
- bridge description builder
-
failMode
public DefaultBridgeDescription.Builder failMode(BridgeDescription.FailMode failMode)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with a given fail mode.- Specified by:
failMode
in interfaceBridgeDescription.Builder
- Parameters:
failMode
- fail mode- Returns:
- bridge description builder
-
datapathId
public DefaultBridgeDescription.Builder datapathId(String datapathId)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with a given datapath ID.- Specified by:
datapathId
in interfaceBridgeDescription.Builder
- Parameters:
datapathId
- datapath id- Returns:
- bridge description builder
-
datapathType
public DefaultBridgeDescription.Builder datapathType(String datapathType)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with a given datapath type.- Specified by:
datapathType
in interfaceBridgeDescription.Builder
- Parameters:
datapathType
- datapath type- Returns:
- bridge description builder
-
controlProtocols
public DefaultBridgeDescription.Builder controlProtocols(List<ControlProtocolVersion> controlProtocols)
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with given control protocol versions.- Specified by:
controlProtocols
in interfaceBridgeDescription.Builder
- Parameters:
controlProtocols
- List of control protocol- Returns:
- bridge description builder
-
disableInBand
public DefaultBridgeDescription.Builder disableInBand()
Description copied from interface:BridgeDescription.Builder
Returns bridge description builder with in-band control disabled.- Specified by:
disableInBand
in interfaceBridgeDescription.Builder
- Returns:
- bridge description builder
-
-