Record Class EngineConfiguration
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.execution.application.EngineConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionEngineConfiguration(String bindAddress, int playerPort, int adminPort, Path stateDirectory, boolean traceLoads) Uses the working directory's mudlibs folder for administrator-visible mudlibs.EngineConfiguration(String bindAddress, int playerPort, int adminPort, Path stateDirectory, boolean traceLoads, Path mudlibDirectory) Omits a public hostname, so directories refer players to the host they already connected to.EngineConfiguration(String bindAddress, int playerPort, int adminPort, Path stateDirectory, boolean traceLoads, Path mudlibDirectory, String publicHost) Validates independent ports; zero asks the OS to allocate a free port for embedding. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theadminPortrecord component.Returns the value of thebindAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themudlibDirectoryrecord component.intReturns the value of theplayerPortrecord component.Returns the value of thepublicHostrecord component.Returns the value of thestateDirectoryrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetraceLoadsrecord component.
-
Constructor Details
-
EngineConfiguration
-
EngineConfiguration
-
EngineConfiguration
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
bindAddress
Returns the value of thebindAddressrecord component.- Returns:
- the value of the
bindAddressrecord component
-
playerPort
public int playerPort()Returns the value of theplayerPortrecord component.- Returns:
- the value of the
playerPortrecord component
-
adminPort
public int adminPort()Returns the value of theadminPortrecord component.- Returns:
- the value of the
adminPortrecord component
-
stateDirectory
Returns the value of thestateDirectoryrecord component.- Returns:
- the value of the
stateDirectoryrecord component
-
traceLoads
public boolean traceLoads()Returns the value of thetraceLoadsrecord component.- Returns:
- the value of the
traceLoadsrecord component
-
mudlibDirectory
Returns the value of themudlibDirectoryrecord component.- Returns:
- the value of the
mudlibDirectoryrecord component
-
publicHost
Returns the value of thepublicHostrecord component.- Returns:
- the value of the
publicHostrecord component
-