public class SimScenario extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
SimScenario.AddNodes
Deprecated.
Add one or more nodes.
|
static class |
SimScenario.ApplySuggestions
Deprecated.
Apply autoscaling suggestions.
|
static class |
SimScenario.Assert
Deprecated.
|
static class |
SimScenario.CalculateSuggestions
Deprecated.
Calculate autoscaling suggestions.
|
static class |
SimScenario.Condition
Deprecated.
|
static class |
SimScenario.CreateCluster
Deprecated.
Create a simulated cluster.
|
static class |
SimScenario.CtxRemove
Deprecated.
Remove a context property.
|
static class |
SimScenario.CtxSet
Deprecated.
Set a context property.
|
static class |
SimScenario.Dump
Deprecated.
Dump the simulator state to the console.
|
static class |
SimScenario.IndexDocs
Deprecated.
|
static class |
SimScenario.KillNodes
Deprecated.
Kill one or more nodes.
|
static class |
SimScenario.LoadAutoscaling
Deprecated.
Load autoscaling.json configuration.
|
static class |
SimScenario.LoadSnapshot
Deprecated.
Create a simulated cluster from an autoscaling snapshot.
|
static class |
SimScenario.LoopOp
Deprecated.
Loop action.
|
static class |
SimScenario.RunSimulator
Deprecated.
Run the simulator for a while.
|
static class |
SimScenario.RunSolrRequest
Deprecated.
Execute a SolrRequest supported by
SimCloudManager . |
static class |
SimScenario.SaveSnapshot
Deprecated.
Save an autoscaling snapshot.
|
static class |
SimScenario.SetEventListener
Deprecated.
Set a temporary listener to wait for a specific trigger event processing.
|
static class |
SimScenario.SetNodeMetrics
Deprecated.
|
static class |
SimScenario.SetOpDelays
Deprecated.
Set delays for specified collection operations in order to simulate slow execution.
|
static class |
SimScenario.SetShardMetrics
Deprecated.
|
static class |
SimScenario.SimAction
Deprecated.
Actions supported by the scenario.
|
static class |
SimScenario.SimOp
Deprecated.
Base class for implementation of scenario DSL actions.
|
static class |
SimScenario.WaitCollection
Deprecated.
Wait for a specific collection shape.
|
static class |
SimScenario.WaitEvent
Deprecated.
Wait for the previously set listener to capture an event.
|
Modifier and Type | Field and Description |
---|---|
boolean |
abortLoop
Deprecated.
|
boolean |
abortScenario
Deprecated.
|
SimCloudManager |
cluster
Deprecated.
|
static String |
COLLECTIONS_CTX_PROP
Deprecated.
Context variable: List of collections.
|
AutoScalingConfig |
config
Deprecated.
|
PrintStream |
console
Deprecated.
|
Map<String,Object> |
context
Deprecated.
|
static String |
LIVE_NODES_CTX_PROP
Deprecated.
Context variable: List of live nodes.
|
static String |
LOOP_ITER_PROP
Deprecated.
Context variable: Current loop iteration or none if outside of loop.
|
List<SimScenario.SimOp> |
ops
Deprecated.
|
static String |
OVERSEER_LEADER_CTX_PROP
Deprecated.
Context variable: Node name of the current Overseer leader.
|
static String |
RANDOM_NODE_CTX_PROP
Deprecated.
Context variable: Random live node name.
|
static String |
RESPONSES_CTX_PROP
Deprecated.
Context variable: List of SolrResponses of SOLR_REQUEST operations.
|
static Map<SimScenario.SimAction,Class<? extends SimScenario.SimOp>> |
simOps
Deprecated.
|
static String |
SUGGESTIONS_CTX_PROP
Deprecated.
Context variable: List of calculated suggestions.
|
static String |
TRIGGER_EVENT_PREFIX
Deprecated.
Last trigger event captured by WAIT_EVENT.
|
boolean |
verbose
Deprecated.
|
Constructor and Description |
---|
SimScenario()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
static SimScenario |
load(String data)
Deprecated.
Parse a DSL string and create a scenario ready to run.
|
void |
run()
Deprecated.
Run the scenario.
|
public static final String RANDOM_NODE_CTX_PROP
public static final String OVERSEER_LEADER_CTX_PROP
public static final String LIVE_NODES_CTX_PROP
public static final String COLLECTIONS_CTX_PROP
public static final String SUGGESTIONS_CTX_PROP
public static final String RESPONSES_CTX_PROP
public static final String LOOP_ITER_PROP
public static final String TRIGGER_EVENT_PREFIX
public SimCloudManager cluster
public AutoScalingConfig config
public List<SimScenario.SimOp> ops
public PrintStream console
public boolean verbose
public boolean abortLoop
public boolean abortScenario
public static Map<SimScenario.SimAction,Class<? extends SimScenario.SimOp>> simOps
public static SimScenario load(String data) throws Exception
data
- DSL string with commands and parametersException
- on syntax errorspublic void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.