public class SdkHarnessClient
extends java.lang.Object
implements java.lang.AutoCloseable
This provides a Java-friendly wrapper around InstructionRequestHandler and CloseableFnDataReceiver, which handle lower-level gRPC message wrangling.
| Modifier and Type | Class and Description | 
|---|---|
| class  | SdkHarnessClient.BundleProcessorA processor capable of creating bundles for some registered  BeamFnApi.ProcessBundleDescriptor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| InstructionRequestHandler | getInstructionRequestHandler() | 
| SdkHarnessClient.BundleProcessor | getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
            java.util.List<RemoteInputDestination> remoteInputDesinations)Provides  SdkHarnessClient.BundleProcessorthat is capable of processing bundles not containing timers or
 state accesses such as:
 
   Side inputs
   User state
   Remote references | 
| SdkHarnessClient.BundleProcessor | getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
            java.util.List<RemoteInputDestination> remoteInputDesinations,
            StateDelegator stateDelegator)Provides  SdkHarnessClient.BundleProcessorthat is capable of processing bundles not containing timers. | 
| SdkHarnessClient.BundleProcessor | getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
            java.util.List<RemoteInputDestination> remoteInputDestinations,
            StateDelegator stateDelegator,
            java.util.Map<java.lang.String,java.util.Map<java.lang.String,ProcessBundleDescriptors.TimerSpec>> timerSpecs)Provides  SdkHarnessClient.BundleProcessorthat is capable of processing bundles containing timers and
 state accesses such as:
 
   Side inputs
   User state
   Remote references | 
| static SdkHarnessClient | usingFnApiClient(InstructionRequestHandler fnApiControlClient,
                FnDataService fnApiDataService)Creates a client for a particular SDK harness. | 
| SdkHarnessClient | withIdGenerator(IdGenerator idGenerator) | 
public InstructionRequestHandler getInstructionRequestHandler()
public static SdkHarnessClient usingFnApiClient(InstructionRequestHandler fnApiControlClient, FnDataService fnApiDataService)
public SdkHarnessClient withIdGenerator(IdGenerator idGenerator)
public SdkHarnessClient.BundleProcessor getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor, java.util.List<RemoteInputDestination> remoteInputDesinations)
SdkHarnessClient.BundleProcessor that is capable of processing bundles not containing timers or
 state accesses such as:
 Note that bundle processors are cached based upon the process bundle descriptor id. A previously created instance may be returned.
public SdkHarnessClient.BundleProcessor getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor, java.util.List<RemoteInputDestination> remoteInputDesinations, StateDelegator stateDelegator)
SdkHarnessClient.BundleProcessor that is capable of processing bundles not containing timers.
 Note that bundle processors are cached based upon the process bundle descriptor id. A previously created instance may be returned.
public SdkHarnessClient.BundleProcessor getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor, java.util.List<RemoteInputDestination> remoteInputDestinations, StateDelegator stateDelegator, java.util.Map<java.lang.String,java.util.Map<java.lang.String,ProcessBundleDescriptors.TimerSpec>> timerSpecs)
SdkHarnessClient.BundleProcessor that is capable of processing bundles containing timers and
 state accesses such as:
 Note that bundle processors are cached based upon the process bundle descriptor id. A previously created instance may be returned.
public void close()
close in interface java.lang.AutoCloseable