public static class ControllerConfig.Builder extends Object
Constructor and Description |
---|
ControllerConfig.Builder() |
Modifier and Type | Method and Description |
---|---|
ControllerConfig.Builder |
addresses(Set<IpAddress> addr)
Sets the addresses that the controller should listen on.
|
ControllerConfig |
build()
Returns a controller configuration for the current settings on
this builder.
|
ControllerConfig.Builder |
enforcementLevel(FlowClassAdministrator.EnforcementLevel enforcementLevel)
Sets the enforcement level of flow mod compliance.
|
ControllerConfig.Builder |
hybridMode(boolean value)
Sets the Hybrid Mode behavior to the specified value.
|
ControllerConfig.Builder |
idleCheckMs(int ms)
Sets the number of milliseconds between idle connection checks.
|
ControllerConfig.Builder |
listenPort(int port)
Sets the OpenFlow listen port for non-secure connections.
|
ControllerConfig.Builder |
maxEchoAttempts(int count)
Sets the echo request attempt limit.
|
ControllerConfig.Builder |
maxEchoMs(int ms)
Sets the echo request period.
|
ControllerConfig.Builder |
maxIdleMs(int ms)
Sets the maximum number of milliseconds before a connection is
considered idle.
|
ControllerConfig.Builder |
rcvBufSize(int size)
Sets the TCP or TLS receive buffer size.
|
ControllerConfig.Builder |
securityContext(SecurityContext secCtx)
Sets the security context.
|
ControllerConfig.Builder |
strictMessageParsing()
Sets the strict message parsing behavior to
true . |
ControllerConfig.Builder |
suppressFlowFailures(boolean value)
Sets the supressFlowFailures value.
|
ControllerConfig.Builder |
suppressSetConfig()
Sets the SetConfig behavior suppression flag
to
true . |
ControllerConfig.Builder |
tlsListenPort(int port)
Sets the OpenFlow listen port for secure (TLS) connections.
|
ControllerConfig.Builder |
udpPort(int port)
Sets the OpenFlow port for UDP.
|
ControllerConfig.Builder |
udpRcvBufSize(int size)
Sets the UDP receive buffer size.
|
ControllerConfig.Builder |
workerCount(int count)
Sets the worker count.
|
public ControllerConfig build()
public ControllerConfig.Builder addresses(Set<IpAddress> addr)
addr
- the addresses to listen onpublic ControllerConfig.Builder listenPort(int port)
port
- the port numberIllegalArgumentException
- if the port number is not validpublic ControllerConfig.Builder tlsListenPort(int port)
port
- the port numberIllegalArgumentException
- if the port number is not validpublic ControllerConfig.Builder udpPort(int port)
port
- the port numberIllegalArgumentException
- if the port number is not validpublic ControllerConfig.Builder securityContext(SecurityContext secCtx)
secCtx
- the security contextpublic ControllerConfig.Builder suppressSetConfig()
true
.public ControllerConfig.Builder rcvBufSize(int size)
size
- the TCP or TLS receive buffer sizepublic ControllerConfig.Builder udpRcvBufSize(int size)
size
- the UDP receive buffer sizepublic ControllerConfig.Builder workerCount(int count)
count
- number of I/O workerspublic ControllerConfig.Builder idleCheckMs(int ms)
ms
- idle check period in millisecondspublic ControllerConfig.Builder maxIdleMs(int ms)
ms
- idle check period in millisecondspublic ControllerConfig.Builder maxEchoMs(int ms)
ms
- milliseconds between echo requestspublic ControllerConfig.Builder maxEchoAttempts(int count)
count
- number of echo request attemptspublic ControllerConfig.Builder strictMessageParsing()
true
.public ControllerConfig.Builder enforcementLevel(FlowClassAdministrator.EnforcementLevel enforcementLevel)
enforcementLevel
- level of flow mod enforcementpublic ControllerConfig.Builder hybridMode(boolean value)
value
- the new value for hybrid modepublic ControllerConfig.Builder suppressFlowFailures(boolean value)
value
- true if testing with a platform that can't accept
flow modsCopyright © 2015. All Rights Reserved.