Search in sources :

Example 1 with ResetEngineRequest

use of io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.ResetEngineRequest in project zeebe-process-test by camunda.

the class ContainerizedEngine method reset.

/**
 * Reset the test engine. A reset stops the current engine, and replaces it with a new engine.
 * Note that you'll need to redeploy your processes because it is an entirely new engine.
 */
public void reset() {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final ResetEngineRequest request = ResetEngineRequest.newBuilder().build();
    stub.resetEngine(request);
    closeChannel(channel);
}
Also used : ManagedChannel(io.grpc.ManagedChannel) ResetEngineRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.ResetEngineRequest) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Example 2 with ResetEngineRequest

use of io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.ResetEngineRequest in project zeebe-process-test by camunda-cloud.

the class ContainerizedEngine method reset.

/**
 * Reset the test engine. A reset stops the current engine, and replaces it with a new engine.
 * Note that you'll need to redeploy your processes because it is an entirely new engine.
 */
public void reset() {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final ResetEngineRequest request = ResetEngineRequest.newBuilder().build();
    stub.resetEngine(request);
    closeChannel(channel);
}
Also used : ManagedChannel(io.grpc.ManagedChannel) ResetEngineRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.ResetEngineRequest) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Aggregations

EngineControlBlockingStub (io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)2 ResetEngineRequest (io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.ResetEngineRequest)2 ManagedChannel (io.grpc.ManagedChannel)2