Interface RemoteBundle

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    SdkHarnessClient.BundleProcessor.ActiveBundle

    public interface RemoteBundle
    extends java.lang.AutoCloseable
    A bundle capable of handling input data elements for a bundle descriptor by forwarding them to a remote environment for processing.

    When a RemoteBundle is closed, it will block until bundle processing is finished on remote resources, and throw an exception if bundle processing has failed.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes this bundle.
      java.lang.String getId()
      Get an id used to represent this bundle.
      java.util.Map<java.lang.String,​org.apache.beam.sdk.fn.data.FnDataReceiver> getInputReceivers()
      Get a map of PCollection ids to receivers which consume input elements, forwarding them to the remote environment.
      java.util.Map<org.apache.beam.sdk.values.KV<java.lang.String,​java.lang.String>,​org.apache.beam.sdk.fn.data.FnDataReceiver<org.apache.beam.sdk.util.construction.Timer>> getTimerReceivers()
      Get a map of (transform id, timer id) to receivers which consume timers, forwarding them to the remote environment.
      void requestProgress()
      Ask the remote bundle for progress.
      void split​(double fractionOfRemainder)
      Ask the remote bundle to split its current processing based upon its knowledge of remaining work.