Class BepServer

    • Constructor Summary

      Constructors 
      Constructor Description
      BepServer​(BazelBspServer bspServer, ch.epfl.scala.bsp4j.BuildClient bspClient)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ch.epfl.scala.bsp4j.StatusCode convertExitCode​(int exitCode)  
      void emitDiagnostics​(java.util.Map<Uri,​java.util.List<ch.epfl.scala.bsp4j.PublishDiagnosticsParams>> filesToDiagnostics, ch.epfl.scala.bsp4j.BuildTargetIdentifier target)  
      java.util.TreeSet<Uri> fetchScalacClasspath()  
      void getDiagnostics​(java.util.Map<Uri,​java.util.List<ch.epfl.scala.bsp4j.PublishDiagnosticsParams>> filesToDiagnostics, ch.epfl.scala.bsp4j.BuildTargetIdentifier target, java.lang.String diagnosticsLocation)  
      java.util.Map<java.lang.String,​java.lang.String> getDiagnosticsProtosLocations()  
      io.grpc.stub.StreamObserver<com.google.devtools.build.v1.PublishBuildToolEventStreamRequest> publishBuildToolEventStream​(io.grpc.stub.StreamObserver<com.google.devtools.build.v1.PublishBuildToolEventStreamResponse> responseObserver)
      Publish build tool events belonging to the same stream to a backend job using bidirectional streaming.
      void publishLifecycleEvent​(com.google.devtools.build.v1.PublishLifecycleEventRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver)
      Publish a build event stating the new state of a build (typically from the build queue).
      void setDiagnosticsProtosLocations​(java.util.Map<java.lang.String,​java.lang.String> diagnosticsProtosLocations)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BepServer

        public BepServer​(BazelBspServer bspServer,
                         ch.epfl.scala.bsp4j.BuildClient bspClient)
    • Method Detail

      • convertExitCode

        public static ch.epfl.scala.bsp4j.StatusCode convertExitCode​(int exitCode)
      • publishLifecycleEvent

        public void publishLifecycleEvent​(com.google.devtools.build.v1.PublishLifecycleEventRequest request,
                                          io.grpc.stub.StreamObserver<Empty> responseObserver)
        Description copied from class: PublishBuildEventGrpc.PublishBuildEventImplBase
         Publish 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:
        publishLifecycleEvent in class PublishBuildEventGrpc.PublishBuildEventImplBase
      • emitDiagnostics

        public void emitDiagnostics​(java.util.Map<Uri,​java.util.List<ch.epfl.scala.bsp4j.PublishDiagnosticsParams>> filesToDiagnostics,
                                    ch.epfl.scala.bsp4j.BuildTargetIdentifier target)
      • getDiagnostics

        public void getDiagnostics​(java.util.Map<Uri,​java.util.List<ch.epfl.scala.bsp4j.PublishDiagnosticsParams>> filesToDiagnostics,
                                   ch.epfl.scala.bsp4j.BuildTargetIdentifier target,
                                   java.lang.String diagnosticsLocation)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • fetchScalacClasspath

        public java.util.TreeSet<Uri> fetchScalacClasspath()
      • getDiagnosticsProtosLocations

        public java.util.Map<java.lang.String,​java.lang.String> getDiagnosticsProtosLocations()
      • setDiagnosticsProtosLocations

        public void setDiagnosticsProtosLocations​(java.util.Map<java.lang.String,​java.lang.String> diagnosticsProtosLocations)