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) |
static void |
kill(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
static void |
kill(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) |
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) |
static void |
start(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) |
void |
startTheMonkey(boolean killLeaders,
int roundPauseUpperLimit) |
static void |
stop(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) |
static void |
stop(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) |
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.KeeperException
InterruptedException
public void randomConnectionLoss() throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public 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
Exception
public void stopJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exception
public void killJetty(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exception
public void stopJetty(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) throws Exception
Exception
public static void kill(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) throws Exception
Exception
public static void kill(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) throws Exception
Exception
public static void kill(AbstractFullDistribZkTestBase.CloudJettyRunner cjetty) throws Exception
Exception
public void stopShardExcept(String slice, String shardName) throws Exception
Exception
public org.apache.solr.client.solrj.embedded.JettySolrRunner getShard(String slice, int index) throws Exception
Exception
public AbstractFullDistribZkTestBase.CloudJettyRunner stopRandomShard() throws Exception
Exception
public AbstractFullDistribZkTestBase.CloudJettyRunner stopRandomShard(String slice) throws Exception
Exception
public AbstractFullDistribZkTestBase.CloudJettyRunner killRandomShard() throws Exception
Exception
public AbstractFullDistribZkTestBase.CloudJettyRunner killRandomShard(String slice) throws Exception
Exception
public AbstractFullDistribZkTestBase.CloudJettyRunner getRandomJetty(String slice, boolean aggressivelyKillLeaders) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public org.apache.solr.client.solrj.SolrServer getRandomClient(String slice) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public void startTheMonkey(boolean killLeaders, int roundPauseUpperLimit)
public static void monkeyLog(String msg)
public void stopTheMonkey()
public int getStarts()
public static void stop(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) throws Exception
Exception
public static void stop(org.apache.solr.client.solrj.embedded.JettySolrRunner jetty) throws Exception
Exception
public static void start(List<org.apache.solr.client.solrj.embedded.JettySolrRunner> jettys) throws Exception
Exception
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.