Search in sources :

Example 1 with StopEngineRequest

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

the class ContainerizedEngine method stop.

@Override
public void stop() {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final StopEngineRequest request = StopEngineRequest.newBuilder().build();
    stub.stopEngine(request);
    closeChannel(channel);
}
Also used : ManagedChannel(io.grpc.ManagedChannel) StopEngineRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.StopEngineRequest) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Example 2 with StopEngineRequest

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

the class ContainerizedEngine method stop.

@Override
public void stop() {
    final ManagedChannel channel = getChannel();
    final EngineControlBlockingStub stub = getStub(channel);
    final StopEngineRequest request = StopEngineRequest.newBuilder().build();
    stub.stopEngine(request);
    closeChannel(channel);
}
Also used : ManagedChannel(io.grpc.ManagedChannel) StopEngineRequest(io.camunda.zeebe.process.test.engine.protocol.EngineControlOuterClass.StopEngineRequest) EngineControlBlockingStub(io.camunda.zeebe.process.test.engine.protocol.EngineControlGrpc.EngineControlBlockingStub)

Aggregations

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