public static final class DefaultBridgeDescription.Builder extends Object implements BridgeDescription.Builder
Modifier and Type | Method and 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.
|
public BridgeDescription build()
BridgeDescription.Builder
build
in interface BridgeDescription.Builder
public DefaultBridgeDescription.Builder name(String name)
BridgeDescription.Builder
name
in interface BridgeDescription.Builder
name
- bridge namepublic DefaultBridgeDescription.Builder controllers(List<ControllerInfo> controllers)
BridgeDescription.Builder
controllers
in interface BridgeDescription.Builder
controllers
- set of controllerspublic DefaultBridgeDescription.Builder enableLocalController()
BridgeDescription.Builder
enableLocalController
in interface BridgeDescription.Builder
public DefaultBridgeDescription.Builder failMode(BridgeDescription.FailMode failMode)
BridgeDescription.Builder
failMode
in interface BridgeDescription.Builder
failMode
- fail modepublic DefaultBridgeDescription.Builder datapathId(String datapathId)
BridgeDescription.Builder
datapathId
in interface BridgeDescription.Builder
datapathId
- datapath idpublic DefaultBridgeDescription.Builder datapathType(String datapathType)
BridgeDescription.Builder
datapathType
in interface BridgeDescription.Builder
datapathType
- datapath typepublic DefaultBridgeDescription.Builder controlProtocols(List<ControlProtocolVersion> controlProtocols)
BridgeDescription.Builder
controlProtocols
in interface BridgeDescription.Builder
controlProtocols
- List of control protocolpublic DefaultBridgeDescription.Builder disableInBand()
BridgeDescription.Builder
disableInBand
in interface BridgeDescription.Builder