Class LocalStackEmulatorRuntime
java.lang.Object
com.cloudforge.core.local.AbstractLocalEmulatorRuntime
com.cloudforgeci.localstack.LocalStackEmulatorRuntime
- All Implemented Interfaces:
LocalEmulatorRuntime
Starts and stops the LocalStack Docker container (
cfc-localstack).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionArguments afterdocker run -dwhen the container does not yet exist.protected voidvoidstart()Start the emulator container and wait untilLocalEmulatorRuntime.isHealthy().voidstop()Stop the emulator container if it is running.Methods inherited from class AbstractLocalEmulatorRuntime
baseDockerCreateArgs, conflictingContainerName, containerName, healthEndpoint, isHealthy, isRunning, spec, targetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LocalEmulatorRuntime
restart
-
Field Details
-
INSTANCE
-
-
Method Details
-
start
Description copied from interface:LocalEmulatorRuntimeStart the emulator container and wait untilLocalEmulatorRuntime.isHealthy().- Specified by:
startin interfaceLocalEmulatorRuntime- Overrides:
startin classAbstractLocalEmulatorRuntime- Throws:
IOException
-
dockerCreateArgs
Description copied from class:AbstractLocalEmulatorRuntimeArguments afterdocker run -dwhen the container does not yet exist.- Specified by:
dockerCreateArgsin classAbstractLocalEmulatorRuntime- Throws:
IOException
-
stop
Description copied from interface:LocalEmulatorRuntimeStop the emulator container if it is running.- Specified by:
stopin interfaceLocalEmulatorRuntime- Overrides:
stopin classAbstractLocalEmulatorRuntime- Throws:
IOException
-
onStarted
protected void onStarted()- Overrides:
onStartedin classAbstractLocalEmulatorRuntime
-