public interface ServerBuilder
Modifier and Type | Method and Description |
---|---|
AssetTree |
build()
Creates and returns an AssetTree representing a started server.
|
static ServerBuilder |
create(byte hostId,
String yamlConfigFile) |
ServerBuilder |
withCluster(@NotNull String cluster)
Sets the cluster for this builder.
|
ServerBuilder |
withHomeDirectory(@NotNull String homeDirectory)
Sets the location where the server shall have is "home directory".
|
ServerBuilder |
withRegion(@NotNull String region)
Sets the region for this builder.
|
ServerBuilder |
withSkipWelcomeMessage()
Sets that the welcome message and settings should be skipped
upon build.
|
ServerBuilder withCluster(@NotNull @NotNull String cluster)
The builder's default cluster is no cluster (null
)
specified. No cluster means that if there is only one cluster,
that one will be selected. If there are several clusters an Exception
will be thrown upon build()
cluster
- to setServerBuilder withRegion(@NotNull @NotNull String region)
The builder's default region is ""
region
- to setServerBuilder withHomeDirectory(@NotNull @NotNull String homeDirectory)
The default value is "." making the current directory the home directory
homeDirectory
- to setServerBuilder withSkipWelcomeMessage()
AssetTree build()
static ServerBuilder create(byte hostId, String yamlConfigFile)
Copyright © 2021. All rights reserved.