public class CalmChaosMonkey extends ChaosMonkey
| Constructor and Description |
|---|
CalmChaosMonkey() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDestructive()
Returns whether the CM does destructive actions (killing servers) so that a cluster restore
is needed after CM is stopped.
|
boolean |
isStopped() |
void |
start() |
void |
stop(String why)
Stop this service.
|
void |
waitForStop() |
public void start()
throws Exception
start in class ChaosMonkeyExceptionpublic void stop(String why)
Stoppablestop in interface Stoppablestop in class ChaosMonkeywhy - Why we're stopping.public boolean isStopped()
isStopped in interface StoppableisStopped in class ChaosMonkeyStoppable.stop(String) has been closed.public void waitForStop()
throws InterruptedException
waitForStop in class ChaosMonkeyInterruptedExceptionpublic boolean isDestructive()
ChaosMonkeyisDestructive in class ChaosMonkey