Class BeamFnDataGrpcMultiplexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Deprecated
    public class BeamFnDataGrpcMultiplexer
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Deprecated.
    A gRPC multiplexer for a specific Endpoints.ApiServiceDescriptor.

    Multiplexes data for inbound consumers based upon their individual org.apache.beam.model.fnexecution.v1.BeamFnApi.Targets.

    Multiplexing inbound and outbound streams is as thread safe as the consumers of those streams. For inbound streams, this is as thread safe as the inbound observers. For outbound streams, this is as thread safe as the underlying stream observer.

    TODO: Add support for multiplexing over multiple outbound observers by stickying the output location with a specific outbound observer.

    • Constructor Summary

      Constructors 
      Constructor Description
      BeamFnDataGrpcMultiplexer​(@Nullable org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor, OutboundObserverFactory outboundObserverFactory, OutboundObserverFactory.BasicFactory<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements,​org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> baseOutboundObserverFactory)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
       
      org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getInboundObserver()
      Deprecated.
       
      org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getOutboundObserver()
      Deprecated.
       
      <T> void registerConsumer​(LogicalEndpoint inputLocation, java.util.function.BiConsumer<org.apache.beam.vendor.grpc.v1p48p1.com.google.protobuf.ByteString,​java.lang.Boolean> bytesReceiver)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • BeamFnDataGrpcMultiplexer

        public BeamFnDataGrpcMultiplexer​(@Nullable org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor,
                                         OutboundObserverFactory outboundObserverFactory,
                                         OutboundObserverFactory.BasicFactory<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements,​org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> baseOutboundObserverFactory)
        Deprecated.
    • Method Detail

      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • getInboundObserver

        public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getInboundObserver()
        Deprecated.
      • getOutboundObserver

        public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> getOutboundObserver()
        Deprecated.
      • registerConsumer

        public <T> void registerConsumer​(LogicalEndpoint inputLocation,
                                         java.util.function.BiConsumer<org.apache.beam.vendor.grpc.v1p48p1.com.google.protobuf.ByteString,​java.lang.Boolean> bytesReceiver)
        Deprecated.
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable