public abstract static class DriverService.Builder<DS extends DriverService,B extends DriverService.Builder> extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
DS |
build()
Creates a new service to manage the driver server.
|
B |
usingAnyFreePort()
Configures the driver server to start on any available port.
|
B |
usingDriverExecutable(File file)
Sets which driver executable the builder will use.
|
B |
usingPort(int port)
Sets which port the driver server should be started on.
|
B |
withEnvironment(Map<String,String> environment)
Defines the environment for the launched driver server.
|
B |
withLogFile(File logFile)
Configures the driver server to write log to the given file.
|
public B usingDriverExecutable(File file)
file - The executable to use.public B usingPort(int port)
port - The port to use; must be non-negative.public B usingAnyFreePort()
@Beta public B withEnvironment(Map<String,String> environment)
environment - A map of the environment variables to launch the
server with.public B withLogFile(File logFile)
logFile - A file to write log to.public DS build()