Record Class DockerBootstrap.Config
java.lang.Object
java.lang.Record
org.fhirfrog.frog.server.bootstrap.DockerBootstrap.Config
- Enclosing class:
- DockerBootstrap
public static record DockerBootstrap.Config(String imageTag, Path pgDumpFile, Path composeFile, String containerName, String pgContainerName, int maxRetries, long retryIntervalMs)
extends Record
Configuration for a bootstrap run.
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(String imageTag, Path pgDumpFile, Path composeFile, String containerName, String pgContainerName) Config(String imageTag, Path pgDumpFile, Path composeFile, String containerName, String pgContainerName, int maxRetries, long retryIntervalMs) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomposeFilerecord component.Returns the value of thecontainerNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imageTag()Returns the value of theimageTagrecord component.intReturns the value of themaxRetriesrecord component.Returns the value of thepgContainerNamerecord component.Returns the value of thepgDumpFilerecord component.longReturns the value of theretryIntervalMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
-
Config
public Config(String imageTag, Path pgDumpFile, Path composeFile, String containerName, String pgContainerName, int maxRetries, long retryIntervalMs) Creates an instance of aConfigrecord class.- Parameters:
imageTag- the value for theimageTagrecord componentpgDumpFile- the value for thepgDumpFilerecord componentcomposeFile- the value for thecomposeFilerecord componentcontainerName- the value for thecontainerNamerecord componentpgContainerName- the value for thepgContainerNamerecord componentmaxRetries- the value for themaxRetriesrecord componentretryIntervalMs- the value for theretryIntervalMsrecord component
-
-
Method Details
-
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 '=='. -
imageTag
Returns the value of theimageTagrecord component.- Returns:
- the value of the
imageTagrecord component
-
pgDumpFile
Returns the value of thepgDumpFilerecord component.- Returns:
- the value of the
pgDumpFilerecord component
-
composeFile
Returns the value of thecomposeFilerecord component.- Returns:
- the value of the
composeFilerecord component
-
containerName
Returns the value of thecontainerNamerecord component.- Returns:
- the value of the
containerNamerecord component
-
pgContainerName
Returns the value of thepgContainerNamerecord component.- Returns:
- the value of the
pgContainerNamerecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-
retryIntervalMs
public long retryIntervalMs()Returns the value of theretryIntervalMsrecord component.- Returns:
- the value of the
retryIntervalMsrecord component
-