Class BepServer
- java.lang.Object
-
- com.google.devtools.build.v1.PublishBuildEventGrpc.PublishBuildEventImplBase
-
- org.jetbrains.bsp.bazel.server.bep.BepServer
-
- All Implemented Interfaces:
io.grpc.BindableService
public class BepServer extends PublishBuildEventGrpc.PublishBuildEventImplBase
-
-
Constructor Summary
Constructors Constructor Description BepServer(ch.epfl.scala.bsp4j.BuildClient bspClient, org.jetbrains.bsp.bazel.server.diagnostics.DiagnosticsService diagnosticsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BepOutputgetBepOutput()voidhandleEvent(BuildEvent buildEvent)io.grpc.stub.StreamObserver<PublishBuildToolEventStreamRequest>publishBuildToolEventStream(io.grpc.stub.StreamObserver<PublishBuildToolEventStreamResponse> responseObserver)Publish build tool events belonging to the same stream to a backend job using bidirectional streaming.voidpublishLifecycleEvent(PublishLifecycleEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Publish a build event stating the new state of a build (typically from the build queue).-
Methods inherited from class com.google.devtools.build.v1.PublishBuildEventGrpc.PublishBuildEventImplBase
bindService
-
-
-
-
Method Detail
-
publishLifecycleEvent
public void publishLifecycleEvent(PublishLifecycleEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Description copied from class:PublishBuildEventGrpc.PublishBuildEventImplBasePublish a build event stating the new state of a build (typically from the build queue). The BuildEnqueued event must be publishd before all other events for the same build ID. The backend will persist the event and deliver it to registered frontend jobs immediately without batching. The commit status of the request is reported by the RPC's util_status() function. The error code is the canoncial error code defined in //util/task/codes.proto.
- Overrides:
publishLifecycleEventin classPublishBuildEventGrpc.PublishBuildEventImplBase
-
publishBuildToolEventStream
public io.grpc.stub.StreamObserver<PublishBuildToolEventStreamRequest> publishBuildToolEventStream(io.grpc.stub.StreamObserver<PublishBuildToolEventStreamResponse> responseObserver)
Description copied from class:PublishBuildEventGrpc.PublishBuildEventImplBasePublish build tool events belonging to the same stream to a backend job using bidirectional streaming.
- Overrides:
publishBuildToolEventStreamin classPublishBuildEventGrpc.PublishBuildEventImplBase
-
handleEvent
public void handleEvent(BuildEvent buildEvent)
-
getBepOutput
public BepOutput getBepOutput()
-
-