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 |
---|---|
static class |
SdkHarnessClient.ActiveBundle
An active bundle for a particular
BeamFnApi.ProcessBundleDescriptor . |
class |
SdkHarnessClient.BundleProcessor
A processor capable of creating bundles for some registered
BeamFnApi.ProcessBundleDescriptor . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SdkHarnessClient.BundleProcessor |
getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
java.util.Map<java.lang.String,RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<?>>> remoteInputDesinations)
Provides
SdkHarnessClient.BundleProcessor that is capable of processing bundles not containing any state
accesses such as:
Side inputs
User state
Remote references
|
SdkHarnessClient.BundleProcessor |
getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
java.util.Map<java.lang.String,RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<?>>> remoteInputDesinations,
StateDelegator stateDelegator)
Provides
SdkHarnessClient.BundleProcessor that is capable of processing bundles containing 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 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.Map<java.lang.String,RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<?>>> remoteInputDesinations)
SdkHarnessClient.BundleProcessor
that is capable of processing bundles not containing any state
accesses such as:
Note that bundle processors are cached based upon the 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.Map<java.lang.String,RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<?>>> remoteInputDesinations, StateDelegator stateDelegator)
SdkHarnessClient.BundleProcessor
that is capable of processing bundles containing state
accesses such as:
Note that bundle processors are cached based upon the the process bundle descriptor id
. A previously created instance
may be returned.
public void close()
close
in interface java.lang.AutoCloseable