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<InputT>
An active bundle for a particular
BeamFnApi.ProcessBundleDescriptor . |
class |
SdkHarnessClient.BundleProcessor<T>
A processor capable of creating bundles for some registered
BeamFnApi.ProcessBundleDescriptor . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T> SdkHarnessClient.BundleProcessor<T> |
getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<T>> remoteInputDesination)
Provides
SdkHarnessClient.BundleProcessor that is capable of processing bundles not
containing any state accesses such as:
Side inputs
User state
Remote references
|
<T> SdkHarnessClient.BundleProcessor<T> |
getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor,
RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<T>> remoteInputDesination,
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 <T> SdkHarnessClient.BundleProcessor<T> getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor, RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<T>> remoteInputDesination)
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 <T> SdkHarnessClient.BundleProcessor<T> getProcessor(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleDescriptor descriptor, RemoteInputDestination<org.apache.beam.sdk.util.WindowedValue<T>> remoteInputDesination, 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