public class Monkeys extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private ExecutorService |
executor |
private static org.slf4j.Logger |
LOG |
private ChaosMonkeyRunner |
monkeyRunner |
private Runnable |
runner |
Constructor and Description |
---|
Monkeys() |
Monkeys(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(org.apache.hadoop.conf.Configuration otherConf) |
void |
addResource(String otherConf) |
void |
close() |
void |
startChaos() |
void |
stopChaos() |
private static final org.slf4j.Logger LOG
private final org.apache.hadoop.conf.Configuration conf
private final ChaosMonkeyRunner monkeyRunner
private final ExecutorService executor
public Monkeys()
public Monkeys(org.apache.hadoop.conf.Configuration conf)
public void addResource(org.apache.hadoop.conf.Configuration otherConf)
public void addResource(String otherConf)
public void startChaos()
public void stopChaos()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.