public class AngelaRule extends ExtendedTestRule implements Closeable
| Constructor and Description |
|---|
AngelaRule(AngelaOrchestrator angelaOrchestrator,
ConfigurationContext configuration) |
AngelaRule(AngelaOrchestrator angelaOrchestrator,
ConfigurationContext configuration,
boolean autoStart,
boolean autoActivate) |
AngelaRule(Supplier<AngelaOrchestrator> angelaOrchestratorSupplier,
ConfigurationContext configuration,
boolean autoStart,
boolean autoActivate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after(org.junit.runner.Description description) |
void |
assertThatServerLogs(TerracottaServer server,
org.hamcrest.Matcher<String> matcher) |
void |
assertThatServerLogs(TerracottaServer server,
String matcher) |
void |
assertThatServerStdOut(TerracottaServer server,
org.hamcrest.Matcher<String> matcher) |
void |
assertThatServerStdOut(TerracottaServer server,
String matcher) |
protected void |
before(org.junit.runner.Description description) |
ClientArray |
clientArray() |
void |
close() |
Cluster |
cluster() |
ClusterTool |
clusterTool() |
ConfigTool |
configTool() |
ConfigurationContext |
configure(ConfigurationContext configuration) |
protected String |
createTestId(org.junit.runner.Description description) |
OptionalInt |
findActive(int stripeId) |
int[] |
findPassives(int stripeId) |
ClusterFactory |
getClusterFactory() |
ConfigurationContext |
getConfiguration() |
TerracottaServer |
getNode(int stripeId,
int nodeId) |
InetSocketAddress |
getNodeAddress(int stripeId,
int nodeId) |
int |
getNodeCount(int stripeId) |
int |
getNodeGroupPort(int stripeId,
int nodeId) |
int |
getNodePort(int stripeId,
int nodeId) |
Path |
getServerHome() |
Path |
getServerHome(TerracottaServer server) |
List<TerracottaServer> |
getStripe(int stripeId) |
int |
getStripeCount() |
ClusterMonitor |
monitor() |
protected void |
prepareLogging(org.junit.runner.Description description) |
List<String> |
serverLogs(int stripeId,
int nodeId) |
List<String> |
serverLogs(TerracottaServer server) |
List<String> |
serverStdOut(int stripeId,
int nodeId) |
List<String> |
serverStdOut(TerracottaServer server) |
void |
startNode(int stripeId,
int nodeId) |
void |
startNode(int stripeId,
int nodeId,
String... cli) |
void |
startNode(TerracottaServer node,
Map<String,String> env,
String... cli) |
void |
startNode(TerracottaServer node,
String... cli) |
void |
startNodes() |
void |
stopNode(int stripeId,
int nodeId) |
Tms |
tms() |
Tsa |
tsa() |
Voter |
voter() |
int |
waitForActive(int stripeId) |
void |
waitForActive(int stripeId,
int nodeId) |
void |
waitForDiagnostic(int stripeId,
int nodeId) |
int[] |
waitForNPassives(int stripeId,
int count) |
void |
waitForPassive(int stripeId,
int nodeId) |
int[] |
waitForPassives(int stripeId) |
void |
waitForStopped(int stripeId,
int nodeId) |
<T> void |
waitUntil(Supplier<T> callable,
org.hamcrest.Matcher<T> matcher) |
void |
waitUntil(ToolExecutionResult result,
org.hamcrest.Matcher<ToolExecutionResult> matcher) |
void |
waitUntilServerLogs(TerracottaServer server,
String matcher) |
void |
waitUntilServerStdOut(TerracottaServer server,
String matcher) |
applypublic AngelaRule(AngelaOrchestrator angelaOrchestrator, ConfigurationContext configuration)
public AngelaRule(AngelaOrchestrator angelaOrchestrator, ConfigurationContext configuration, boolean autoStart, boolean autoActivate)
public AngelaRule(Supplier<AngelaOrchestrator> angelaOrchestratorSupplier, ConfigurationContext configuration, boolean autoStart, boolean autoActivate)
public ConfigurationContext configure(ConfigurationContext configuration)
protected void before(org.junit.runner.Description description)
throws Throwable
before in class ExtendedTestRuleThrowableprotected void prepareLogging(org.junit.runner.Description description)
protected String createTestId(org.junit.runner.Description description)
protected void after(org.junit.runner.Description description)
throws Throwable
after in class ExtendedTestRuleThrowablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void startNodes()
public void startNode(int stripeId,
int nodeId)
public void startNode(int stripeId,
int nodeId,
String... cli)
public void startNode(TerracottaServer node, String... cli)
public void stopNode(int stripeId,
int nodeId)
public final void startNode(TerracottaServer node, Map<String,String> env, String... cli)
public ClusterFactory getClusterFactory()
public ConfigurationContext getConfiguration()
public int getStripeCount()
public int getNodeCount(int stripeId)
public List<TerracottaServer> getStripe(int stripeId)
public TerracottaServer getNode(int stripeId, int nodeId)
public int getNodePort(int stripeId,
int nodeId)
public int getNodeGroupPort(int stripeId,
int nodeId)
public final InetSocketAddress getNodeAddress(int stripeId, int nodeId)
public OptionalInt findActive(int stripeId)
public int[] findPassives(int stripeId)
public final Path getServerHome()
public final Path getServerHome(TerracottaServer server)
public final void waitUntil(ToolExecutionResult result, org.hamcrest.Matcher<ToolExecutionResult> matcher)
public final void waitUntilServerStdOut(TerracottaServer server, String matcher)
public final void assertThatServerStdOut(TerracottaServer server, String matcher)
public final void assertThatServerStdOut(TerracottaServer server, org.hamcrest.Matcher<String> matcher)
public List<String> serverStdOut(TerracottaServer server)
public final void waitUntilServerLogs(TerracottaServer server, String matcher)
public final void assertThatServerLogs(TerracottaServer server, String matcher)
public final void assertThatServerLogs(TerracottaServer server, org.hamcrest.Matcher<String> matcher)
public List<String> serverLogs(TerracottaServer server)
public final <T> void waitUntil(Supplier<T> callable, org.hamcrest.Matcher<T> matcher)
public final int waitForActive(int stripeId)
public final void waitForActive(int stripeId,
int nodeId)
public final void waitForPassive(int stripeId,
int nodeId)
public final void waitForDiagnostic(int stripeId,
int nodeId)
public final void waitForStopped(int stripeId,
int nodeId)
public final int[] waitForPassives(int stripeId)
public final int[] waitForNPassives(int stripeId,
int count)
public Tsa tsa()
public ConfigTool configTool()
public ClusterTool clusterTool()
public Cluster cluster()
public Tms tms()
public ClientArray clientArray()
public ClusterMonitor monitor()
public Voter voter()
Copyright © 2022. All rights reserved.