Interface LocalEmulatorRuntime
- All Known Implementing Classes:
AbstractLocalEmulatorRuntime, LocalStackEmulatorRuntime, MiniStackEmulatorRuntime
public interface LocalEmulatorRuntime
Docker lifecycle for a local AWS emulator (MiniStack or LocalStack).
Resolve implementations via LocalEmulatorRuntimes. Metadata lives in
LocalEmulatorSpec; shared defaults in LocalEmulatorDefaults.
-
Method Summary
Modifier and TypeMethodDescriptionOptional container that must be stopped first because it binds the same gateway port.Stable Docker container name (for examplecfc-ministack).Gateway health URL on the host (for examplehttp://localhost:4566/_ministack/health).booleanWhether the gateway health endpoint returns HTTP 2xx.booleanWhether the named container is in the running state.default voidrestart()Stop then start.voidstart()Start the emulator container and wait untilisHealthy().voidstop()Stop the emulator container if it is running.target()Deployment target this runtime serves.
-
Method Details
-
target
DeploymentTarget target()Deployment target this runtime serves. -
containerName
String containerName()Stable Docker container name (for examplecfc-ministack). -
conflictingContainerName
-
healthEndpoint
URI healthEndpoint()Gateway health URL on the host (for examplehttp://localhost:4566/_ministack/health). -
start
Start the emulator container and wait untilisHealthy().- Throws:
IOException
-
stop
-
restart
-
isRunning
Whether the named container is in the running state.- Throws:
IOException
-
isHealthy
boolean isHealthy()Whether the gateway health endpoint returns HTTP 2xx.
-