Record Class DevServerConfig
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevServerConfig
- Record Components:
projectDirectory- Maven or Gradle project directorymainClass- optional application main class override; auto-detected when omittedapplicationName- Fluxzero application/client name for the app processnamespace- optional Fluxzero namespace/project idwatch- whether source watching is enabledcompileOnStart- whether to compile and launch the app on startuptestsEnabled- whether background tests are enabledstartupTimeout- timeout for app readinessgracefulShutdownTimeout- timeout for old app shutdowndebounce- debounce duration for source/test changesfrontend- optional frontend adapter configurationappArgs- application argumentsfastCompilerEnabled- whether ordinary Java source changes may use the Maven-correct fast compilerenvironment- Fluxzero application environment, for examplelocalordevapplications- optional reactor applications/modules to start; all discovered apps start when emptygatewayPort- public frontend/backend gateway port;0allocates a free dynamic portidpMode- managed local IDP or application-owned external IDPapplicationConfig- named per-application launch configurations loaded from project config
public record DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled, String environment, List<String> applications, int gatewayPort, IdpMode idpMode, Map<String, DevApplicationConfig> applicationConfig)
extends Record
Configuration for the local Fluxzero dev server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs) DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled) DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled, String environment, List<String> applications, int gatewayPort, IdpMode idpMode) DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled, String environment, List<String> applications, int gatewayPort, IdpMode idpMode, Map<String, DevApplicationConfig> applicationConfig) Creates an instance of aDevServerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionappArgs()Returns the value of theappArgsrecord component.Returns the value of theapplicationConfigrecord component.Returns the value of theapplicationNamerecord component.Returns the value of theapplicationsrecord component.booleanReturns the value of thecompileOnStartrecord component.debounce()Returns the value of thedebouncerecord component.static DevServerConfigReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefastCompilerEnabledrecord component.static DevServerConfigfrontend()Returns the value of thefrontendrecord component.intReturns the value of thegatewayPortrecord component.Returns the value of thegracefulShutdownTimeoutrecord component.final inthashCode()Returns a hash code value for this object.idpMode()Returns the value of theidpModerecord component.Returns the value of themainClassrecord component.Returns the value of thenamespacerecord component.Returns the value of theprojectDirectoryrecord component.Returns the value of thestartupTimeoutrecord component.booleanReturns the value of thetestsEnabledrecord component.final StringtoString()Returns a string representation of this record class.booleanwatch()Returns the value of thewatchrecord component.
-
Field Details
-
DEFAULT_STARTUP_TIMEOUT
-
DEFAULT_GRACEFUL_SHUTDOWN_TIMEOUT
-
DEFAULT_DEBOUNCE
-
-
Constructor Details
-
DevServerConfig
public DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled, String environment, List<String> applications, int gatewayPort, IdpMode idpMode, Map<String, DevApplicationConfig> applicationConfig) Creates an instance of aDevServerConfigrecord class.- Parameters:
projectDirectory- the value for theprojectDirectoryrecord componentmainClass- the value for themainClassrecord componentapplicationName- the value for theapplicationNamerecord componentnamespace- the value for thenamespacerecord componentwatch- the value for thewatchrecord componentcompileOnStart- the value for thecompileOnStartrecord componenttestsEnabled- the value for thetestsEnabledrecord componentstartupTimeout- the value for thestartupTimeoutrecord componentgracefulShutdownTimeout- the value for thegracefulShutdownTimeoutrecord componentdebounce- the value for thedebouncerecord componentfrontend- the value for thefrontendrecord componentappArgs- the value for theappArgsrecord componentfastCompilerEnabled- the value for thefastCompilerEnabledrecord componentenvironment- the value for theenvironmentrecord componentapplications- the value for theapplicationsrecord componentgatewayPort- the value for thegatewayPortrecord componentidpMode- the value for theidpModerecord componentapplicationConfig- the value for theapplicationConfigrecord component
-
DevServerConfig
public DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled) -
DevServerConfig
-
DevServerConfig
public DevServerConfig(Path projectDirectory, String mainClass, String applicationName, String namespace, boolean watch, boolean compileOnStart, boolean testsEnabled, Duration startupTimeout, Duration gracefulShutdownTimeout, Duration debounce, FrontendConfig frontend, List<String> appArgs, boolean fastCompilerEnabled, String environment, List<String> applications, int gatewayPort, IdpMode idpMode)
-
-
Method Details
-
defaults
-
fromArgs
-
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. -
projectDirectory
Returns the value of theprojectDirectoryrecord component.- Returns:
- the value of the
projectDirectoryrecord component
-
mainClass
-
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
namespace
-
watch
-
compileOnStart
public boolean compileOnStart()Returns the value of thecompileOnStartrecord component.- Returns:
- the value of the
compileOnStartrecord component
-
testsEnabled
public boolean testsEnabled()Returns the value of thetestsEnabledrecord component.- Returns:
- the value of the
testsEnabledrecord component
-
startupTimeout
Returns the value of thestartupTimeoutrecord component.- Returns:
- the value of the
startupTimeoutrecord component
-
gracefulShutdownTimeout
Returns the value of thegracefulShutdownTimeoutrecord component.- Returns:
- the value of the
gracefulShutdownTimeoutrecord component
-
debounce
-
frontend
-
appArgs
-
fastCompilerEnabled
public boolean fastCompilerEnabled()Returns the value of thefastCompilerEnabledrecord component.- Returns:
- the value of the
fastCompilerEnabledrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
applications
Returns the value of theapplicationsrecord component.- Returns:
- the value of the
applicationsrecord component
-
gatewayPort
public int gatewayPort()Returns the value of thegatewayPortrecord component.- Returns:
- the value of the
gatewayPortrecord component
-
idpMode
-
applicationConfig
Returns the value of theapplicationConfigrecord component.- Returns:
- the value of the
applicationConfigrecord component
-