Class ProviderRuntimeConfiguration

java.lang.Object
org.cloudburstmc.netty.signaling.provider.ProviderRuntimeConfiguration

public final class ProviderRuntimeConfiguration extends Object
Validated NXS settings, with the listener and capacity inherited from whatever is hosting.
  • 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 provider
      directory - The host's data directory, which the state directory and any token file are resolved against
      bindAddress - The address the host listens on
      udpPort - The fixed UDP port the provider hands out, which cannot be ephemeral
      maxPlayers - The routing capacity to register with
      Throws:
      IOException - If a setting is invalid, or an advertised name does not resolve
    • origin

      public URI origin()
    • stateDirectory

      public Path stateDirectory()
    • label

      public String label()
    • bindAddress

      public String bindAddress()
    • udpPort

      public int udpPort()
    • capacity

      public int capacity()
    • clientConfiguration

      public ProviderClient.Configuration clientConfiguration()
    • toString

      public String toString()
      Overrides:
      toString in class Object