public class SdkHarnessClient.BundleProcessor
extends java.lang.Object
BeamFnApi.ProcessBundleDescriptor.| Modifier and Type | Method and Description | 
|---|---|
| java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.RegisterResponse> | getRegistrationFuture() | 
| SdkHarnessClient.ActiveBundle | newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers,
         BundleProgressHandler progressHandler)Start a new bundle for the given  BeamFnApi.ProcessBundleDescriptoridentifier. | 
| SdkHarnessClient.ActiveBundle | newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers,
         StateRequestHandler stateRequestHandler,
         BundleProgressHandler progressHandler)Start a new bundle for the given  BeamFnApi.ProcessBundleDescriptoridentifier. | 
public java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.RegisterResponse> getRegistrationFuture()
public SdkHarnessClient.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, BundleProgressHandler progressHandler)
BeamFnApi.ProcessBundleDescriptor identifier.
 The input channels for the returned SdkHarnessClient.ActiveBundle are derived from the instructions
 in the BeamFnApi.ProcessBundleDescriptor.
 
NOTE: It is important to SdkHarnessClient.close() each bundle after all elements are emitted.
 
 try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) {
   FnDataReceiver<InputT> inputReceiver =
       (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId);
   // send all main input elements ...
 }
 public SdkHarnessClient.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler)
BeamFnApi.ProcessBundleDescriptor identifier.
 The input channels for the returned SdkHarnessClient.ActiveBundle are derived from the instructions
 in the BeamFnApi.ProcessBundleDescriptor.
 
NOTE: It is important to SdkHarnessClient.close() each bundle after all elements are emitted.
 
 try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) {
   FnDataReceiver<InputT> inputReceiver =
       (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId);
   // send all elements ...
 }