Class EmrConfig
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfig<EmrConfig.Builder>
io.floci.testcontainers.config.services.EmrConfig
Configuration for EMR (Elastic MapReduce)-specific container settings.
Instances are created via EmrConfig.Builder:
EmrConfig config = EmrConfig.builder()
.enabled(true)
.defaultReleaseLabel("emr-7.8.0")
.clusterStartupDelaySeconds(5)
.build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
DEFAULT_ENABLED -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Applies this service configuration to the given container by setting the appropriate environment variables.static EmrConfig.Builderbuilder()Returns a newEmrConfig.Builderfor this configuration.intReturns the delay in seconds before a cluster reaches the WAITING state.Returns the default EMR release label used when creating clusters.Returns a newEmrConfig.Builderfor this configuration, initialized with the current values of this instance.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
applyExposedPortsToContainer, isEnabled
-
Method Details
-
builder
Returns a newEmrConfig.Builderfor this configuration.- Returns:
- a new builder
-
toBuilder
Returns a newEmrConfig.Builderfor this configuration, initialized with the current values of this instance.- Specified by:
toBuilderin classAbstractServiceConfig<EmrConfig.Builder>- Returns:
- a new builder pre-populated with this configuration's values
-
getDefaultReleaseLabel
Returns the default EMR release label used when creating clusters.- Returns:
- the release label
-
getClusterStartupDelaySeconds
public int getClusterStartupDelaySeconds()Returns the delay in seconds before a cluster reaches the WAITING state. A value of0means the cluster advances synchronously.- Returns:
- the cluster startup delay in seconds
-
applyEnvVarsToContainer
public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Description copied from class:AbstractServiceConfigApplies this service configuration to the given container by setting the appropriate environment variables.- Overrides:
applyEnvVarsToContainerin classAbstractServiceConfig<EmrConfig.Builder>- Parameters:
container- the container to configure
-