Class Settings.ProgramSettings.NetSettings

java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.ProgramSettings.NetSettings
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Cloneable
Enclosing class:
Settings.ProgramSettings

public static class Settings.ProgramSettings.NetSettings extends SettingsObject
  • Field Details

    • restEnabled

      public boolean restEnabled
      Whether the server must be enabled.
    • restPort

      public int restPort
      The rest port. Needs to be < 0. If ≤ 0, the server won't be started.
    • restLoopbackOnly

      public boolean restLoopbackOnly
      Whether to bind the REST server to the loopback interface only. If true (the default), the REST API is not reachable from other machines. Set to false to expose it to the network (for example, in master-slave planetarium setups). WARNING: this exposes the whole scripting API to your network.
    • master

    • slave

  • Constructor Details

    • NetSettings

      public NetSettings()
  • Method Details

    • getNetName

      public String getNetName()
    • isMasterInstance

      public boolean isMasterInstance()
    • isSlaveInstance

      public boolean isSlaveInstance()
    • isSlaveMPCDIPresent

      public boolean isSlaveMPCDIPresent()
      Checks whether the MPCDI configuration file for this slave is set
      Returns:
      Whether the MPCDI file for this slave is set
    • areSlaveConfigPropertiesPresent

      public boolean areSlaveConfigPropertiesPresent()
      Checks whether the slave is configured directly in the properties file of Gaia Sky
      Returns:
      Whether the slave is configured in the properties file
    • clone

      Overrides:
      clone in class SettingsObject
    • setParentRecursive

      protected void setParentRecursive(SettingsObject s)
      Specified by:
      setParentRecursive in class SettingsObject
    • setupListeners

      protected void setupListeners()
      Specified by:
      setupListeners in class SettingsObject
    • dispose

      public void dispose()
    • apply

      public void apply()