Package ch.so.agi.netl
Record Class NetlRuntimeSettings
java.lang.Object
java.lang.Record
ch.so.agi.netl.NetlRuntimeSettings
public record NetlRuntimeSettings(Path workspace, Path hostWorkspace, String dockerProject, boolean container)
extends Record
One fixed workspace and dedicated Docker project per server process.
-
Constructor Summary
ConstructorsConstructorDescriptionNetlRuntimeSettings(Path workspace, Path hostWorkspace, String dockerProject, boolean container) Creates an instance of aNetlRuntimeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecontainerrecord component.containerName(String service) Returns the value of thedockerProjectrecord component.final booleanIndicates whether some other object is "equal to" this one.static NetlRuntimeSettingsfromEnvironment(Path workspace) final inthashCode()Returns a hash code value for this object.Returns the value of thehostWorkspacerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspacerecord component.
-
Constructor Details
-
NetlRuntimeSettings
public NetlRuntimeSettings(Path workspace, Path hostWorkspace, String dockerProject, boolean container) Creates an instance of aNetlRuntimeSettingsrecord class.- Parameters:
workspace- the value for theworkspacerecord componenthostWorkspace- the value for thehostWorkspacerecord componentdockerProject- the value for thedockerProjectrecord componentcontainer- the value for thecontainerrecord component
-
-
Method Details
-
fromEnvironment
-
containerName
-
jdbcUrl
-
runnerHostMount
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
workspace
Returns the value of theworkspacerecord component.- Returns:
- the value of the
workspacerecord component
-
hostWorkspace
Returns the value of thehostWorkspacerecord component.- Returns:
- the value of the
hostWorkspacerecord component
-
dockerProject
Returns the value of thedockerProjectrecord component.- Returns:
- the value of the
dockerProjectrecord component
-
container
public boolean container()Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-