public static final class SerialTypes.BackingSpec.Builder
extends java.lang.Object
SerialTypes.BackingSpec
.Constructor and Description |
---|
SerialTypes.BackingSpec.Builder(SerialTypes.BackingType type)
Constructor with parameters for the required properties of
SerialTypes.BackingSpec . |
Modifier and Type | Method and Description |
---|---|
SerialTypes.BackingSpec |
build() |
SerialTypes.BackingSpec.Builder |
setFile(java.lang.String file)
Path of the file backing the virtual serial port.
|
SerialTypes.BackingSpec.Builder |
setHostDevice(java.lang.String hostDevice)
Name of the device backing the virtual serial port.
|
SerialTypes.BackingSpec.Builder |
setNetworkLocation(java.net.URI networkLocation)
URI specifying the location of the network service backing the virtual serial
port.
|
SerialTypes.BackingSpec.Builder |
setNoRxLoss(java.lang.Boolean noRxLoss)
Flag that enables optimized data transfer over the pipe.
|
SerialTypes.BackingSpec.Builder |
setPipe(java.lang.String pipe)
Name of the pipe backing the virtual serial port.
|
SerialTypes.BackingSpec.Builder |
setProxy(java.net.URI proxy)
Proxy service that provides network access to the network backing.
|
public SerialTypes.BackingSpec.Builder(SerialTypes.BackingType type)
SerialTypes.BackingSpec
.public SerialTypes.BackingSpec.Builder setFile(java.lang.String file)
getType()
is SerialTypes.BackingType.FILE
.file
- New value for the property.public SerialTypes.BackingSpec.Builder setHostDevice(java.lang.String hostDevice)
null
, the virtual serial port will be configured to automatically
detect a suitable host device.hostDevice
- New value for the property.public SerialTypes.BackingSpec.Builder setPipe(java.lang.String pipe)
getType()
is one of SerialTypes.BackingType.PIPE_SERVER
or SerialTypes.BackingType.PIPE_CLIENT
.pipe
- New value for the property.public SerialTypes.BackingSpec.Builder setNoRxLoss(java.lang.Boolean noRxLoss)
null
, defaults to false.noRxLoss
- New value for the property.public SerialTypes.BackingSpec.Builder setNetworkLocation(java.net.URI networkLocation)
SerialTypes.BackingSpec.getType()
is SerialTypes.BackingType.NETWORK_SERVER
, this
property is the location used by clients to connect to this server. The hostname
part of the URI should either be empty or should specify the address of the host
on which the virtual machine is running.SerialTypes.BackingSpec.getType()
is SerialTypes.BackingType.NETWORK_CLIENT
, this
property is the location used by the virtual machine to connect to the remote
server.getType()
is one of SerialTypes.BackingType.NETWORK_SERVER
or SerialTypes.BackingType.NETWORK_CLIENT
.networkLocation
- New value for the property.public SerialTypes.BackingSpec.Builder setProxy(java.net.URI proxy)
null
, no proxy service should be used.proxy
- New value for the property.public SerialTypes.BackingSpec build()