Package io.micronaut.crac.test
Class DefaultCheckpointSimulator
java.lang.Object
io.micronaut.crac.test.DefaultCheckpointSimulator
- All Implemented Interfaces:
CheckpointSimulator
@Singleton
@Requires(env="test")
public class DefaultCheckpointSimulator
extends Object
implements CheckpointSimulator
Provides a mechanism to simulate a checkpoint/restore for testing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Simulates a restore.void
Simulates a checkpoint.
-
Constructor Details
-
DefaultCheckpointSimulator
-
-
Method Details
-
runBeforeCheckpoint
public void runBeforeCheckpoint()Description copied from interface:CheckpointSimulator
Simulates a checkpoint.- Specified by:
runBeforeCheckpoint
in interfaceCheckpointSimulator
-
runAfterRestore
public void runAfterRestore()Description copied from interface:CheckpointSimulator
Simulates a restore.- Specified by:
runAfterRestore
in interfaceCheckpointSimulator
-