public class ChaosMonkey extends Object
| Constructor and Description |
|---|
ChaosMonkey(ZkTestServer zkServer,
org.apache.solr.common.cloud.ZkStateReader zkStateReader,
String collection,
Map<String,List<AbstractFullDistribZkTestBase.CloudJettyRunner>> shardToJetty,
Map<String,AbstractFullDistribZkTestBase.CloudJettyRunner> shardToLeaderJetty) |
| Modifier and Type | Method and Description |
|---|---|
static void |
causeConnectionLoss(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
static void |
causeConnectionLoss(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty,
int pauseTime) |
void |
expireRandomSession() |
void |
expireSession(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
org.apache.solr.client.solrj.SolrServer |
getRandomClient(String slice) |
AbstractFullDistribZkTestBase.CloudJettyRunner |
getRandomJetty(String slice,
boolean aggressivelyKillLeaders) |
org.apache.solr.client.solrj.embedded.JettySolrRunner |
getShard(String slice,
int index) |
int |
getStarts() |
static void |
kill(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) |
void |
killJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) |
AbstractFullDistribZkTestBase.CloudJettyRunner |
killRandomShard() |
AbstractFullDistribZkTestBase.CloudJettyRunner |
killRandomShard(String slice) |
static void |
monkeyLog(String msg) |
void |
randomConnectionLoss() |
static boolean |
start(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
void |
startTheMonkey(boolean killLeaders,
int roundPauseUpperLimit) |
static void |
stop(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
void |
stopJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) |
void |
stopJetty(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
AbstractFullDistribZkTestBase.CloudJettyRunner |
stopRandomShard() |
AbstractFullDistribZkTestBase.CloudJettyRunner |
stopRandomShard(String slice) |
void |
stopShard(String slice) |
AbstractFullDistribZkTestBase.CloudJettyRunner |
stopShard(String slice,
int index) |
void |
stopShardExcept(String slice,
String shardName) |
void |
stopTheMonkey() |
public ChaosMonkey(ZkTestServer zkServer, org.apache.solr.common.cloud.ZkStateReader zkStateReader, String collection, Map<String,List<AbstractFullDistribZkTestBase.CloudJettyRunner>> shardToJetty, Map<String,AbstractFullDistribZkTestBase.CloudJettyRunner> shardToLeaderJetty)
public void expireSession(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty)
public void expireRandomSession()
throws org.apache.zookeeper.KeeperException,
InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void randomConnectionLoss()
throws org.apache.zookeeper.KeeperException,
InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic static void causeConnectionLoss(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty)
public static void causeConnectionLoss(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty,
int pauseTime)
public AbstractFullDistribZkTestBase.CloudJettyRunner stopShard(String slice, int index) throws Exception
Exceptionpublic void stopJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exceptionpublic void killJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exceptionpublic void stopJetty(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty)
throws Exception
Exceptionpublic static void kill(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exceptionpublic void stopShardExcept(String slice, String shardName) throws Exception
Exceptionpublic org.apache.solr.client.solrj.embedded.JettySolrRunner getShard(String slice, int index) throws Exception
Exceptionpublic AbstractFullDistribZkTestBase.CloudJettyRunner stopRandomShard() throws Exception
Exceptionpublic AbstractFullDistribZkTestBase.CloudJettyRunner stopRandomShard(String slice) throws Exception
Exceptionpublic AbstractFullDistribZkTestBase.CloudJettyRunner killRandomShard() throws Exception
Exceptionpublic AbstractFullDistribZkTestBase.CloudJettyRunner killRandomShard(String slice) throws Exception
Exceptionpublic AbstractFullDistribZkTestBase.CloudJettyRunner getRandomJetty(String slice, boolean aggressivelyKillLeaders) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic org.apache.solr.client.solrj.SolrServer getRandomClient(String slice) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void startTheMonkey(boolean killLeaders,
int roundPauseUpperLimit)
public static void monkeyLog(String msg)
public void stopTheMonkey()
public int getStarts()
public static void stop(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty)
throws Exception
ExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.