Class ProviderRuntimeConfiguration
java.lang.Object
org.cloudburstmc.netty.signaling.provider.ProviderRuntimeConfiguration
Validated NXS settings, with the listener and capacity inherited from whatever is hosting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWhat a host's configuration has to supply, so this does not depend on how it stores it. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()label()origin()static ProviderRuntimeConfigurationresolve(ProviderRuntimeConfiguration.Settings settings, Path directory, String bindAddress, int udpPort, int maxPlayers) toString()intudpPort()
-
Method Details
-
resolve
public static ProviderRuntimeConfiguration resolve(ProviderRuntimeConfiguration.Settings settings, Path directory, String bindAddress, int udpPort, int maxPlayers) throws IOException - Parameters:
settings- What the host has configured for the providerdirectory- The host's data directory, which the state directory and any token file are resolved againstbindAddress- The address the host listens onudpPort- The fixed UDP port the provider hands out, which cannot be ephemeralmaxPlayers- The routing capacity to register with- Throws:
IOException- If a setting is invalid, or an advertised name does not resolve
-
origin
-
stateDirectory
-
label
-
bindAddress
-
udpPort
public int udpPort() -
capacity
public int capacity() -
clientConfiguration
-
toString
-