Package io.camunda.zeebe.qa.util.cluster
Interface TestGateway<T extends TestGateway<T>>
- Type Parameters:
T- the concrete type of the implementation
- All Superinterfaces:
AutoCloseable,TestApplication<T>
- All Known Implementing Classes:
TestStandaloneBroker,TestStandaloneGateway
Represents a Zeebe gateway, either standalone or embedded.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TConvenience method to await complete topology of single node clusters.default TawaitCompleteTopology(int clusterSize, int partitionCount, int replicationFactor, Duration timeout) Blocks until the topology is complete.Returns the gateway configuration for this node.default GatewayHealthActuatorReturns the health actuator for this gateway.default URIReturns the address used by clients to interact with the gateway.default HealthActuatorReturns the default health actuator for this application.default booleanReturns true if this node can act as a gateway (e.g.default ZeebeClientBuilderReturns a new pre-configured client builder for this gatewaydefault URIReturns the address used by clients to interact with the gateway.withGatewayConfig(Consumer<GatewayCfg> modifier) Allows modifying the gateway configuration.Methods inherited from interface io.camunda.zeebe.qa.util.cluster.TestApplication
actuatorUri, address, address, await, await, bean, close, host, isStarted, mappedPort, monitoringUri, nodeId, probe, property, self, start, stop, uri, uri, withAdditionalProfile, withAdditionalProfile, withBean, withProperty
-
Method Details
-
grpcAddress
Returns the address used by clients to interact with the gateway.You can build your client like this:
@{code ZeebeClient.newClientBuilder() .gatewayAddress(gateway.gatewayAddress()) .usePlaintext() .build(); }- Returns:
- the address for the gRPC gateway
-
restAddress
Returns the address used by clients to interact with the gateway.You can build your client like this:
@{code ZeebeClient.newClientBuilder() .restAddress(gateway.restAddress()) .usePlaintext() .build(); }- Returns:
- the REST gateway address
-
gatewayHealth
Returns the health actuator for this gateway. You can use this to check for liveness, readiness, and startup. -
healthActuator
Description copied from interface:TestApplicationReturns the default health actuator for this application.- Specified by:
healthActuatorin interfaceTestApplication<T extends TestGateway<T>>
-
isGateway
default boolean isGateway()Description copied from interface:TestApplicationReturns true if this node can act as a gateway (e.g. broker with embedded gateway)- Specified by:
isGatewayin interfaceTestApplication<T extends TestGateway<T>>
-
withGatewayConfig
Allows modifying the gateway configuration. Changes will not take effect until the node is restarted. -
gatewayConfig
GatewayCfg gatewayConfig()Returns the gateway configuration for this node. -
newClientBuilder
Returns a new pre-configured client builder for this gateway -
awaitCompleteTopology
default T awaitCompleteTopology(int clusterSize, int partitionCount, int replicationFactor, Duration timeout) Blocks until the topology is complete. SeeTopologyAssert.isComplete(int, int, int)for semantics.- Returns:
- itself for chaining
- See Also:
-
awaitCompleteTopology
Convenience method to await complete topology of single node clusters.- Returns:
- itself for chaining
-