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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the server must be enabled.booleanWhether to bind the REST server to the loopback interface only.intThe rest port.Fields inherited from class SettingsObject
parent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SettingsObject
getRoot, isEnabled, setParent
-
Field Details
-
restEnabled
public boolean restEnabledWhether the server must be enabled. -
restPort
public int restPortThe rest port. Needs to be < 0. If ≤ 0, the server won't be started. -
restLoopbackOnly
public boolean restLoopbackOnlyWhether 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
-
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:
clonein classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursivein classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListenersin classSettingsObject
-
dispose
public void dispose() -
apply
public void apply()
-