public class SdkHarnessClient.BundleProcessor.ActiveBundle extends java.lang.Object implements RemoteBundle
BeamFnApi.ProcessBundleDescriptor.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Blocks until bundle processing is finished.
|
java.lang.String |
getId()
Returns an id used to represent this bundle.
|
java.util.Map<java.lang.String,FnDataReceiver> |
getInputReceivers()
Get a map of PCollection ids to
receivers which consume input
elements, forwarding them to the remote environment. |
java.util.Map<KV<java.lang.String,java.lang.String>,FnDataReceiver<org.apache.beam.runners.core.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.
|
public java.lang.String getId()
getId in interface RemoteBundlepublic java.util.Map<java.lang.String,FnDataReceiver> getInputReceivers()
receivers which consume input
elements, forwarding them to the remote environment.getInputReceivers in interface RemoteBundlepublic java.util.Map<KV<java.lang.String,java.lang.String>,FnDataReceiver<org.apache.beam.runners.core.construction.Timer>> getTimerReceivers()
RemoteBundlereceivers which consume timers,
forwarding them to the remote environment.getTimerReceivers in interface RemoteBundlepublic void requestProgress()
RemoteBundleThis method is a no-op if the bundle is complete otherwise it will return after the request
has been issued. Any progress reports will be forwarded to the BundleProgressHandler.
All BundleProgressHandler.onProgress(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleProgressResponse) calls are guaranteed to be called before any
BundleProgressHandler.onCompleted(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleResponse).
requestProgress in interface RemoteBundlepublic void split(double fractionOfRemainder)
RemoteBundleThis method is a no-op if the bundle is complete otherwise it will return after the request
has been issued. Any splits will be forwarded to the BundleSplitHandler.
All BundleSplitHandler.split(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleSplitResponse) calls are guaranteed to be called before any BundleCheckpointHandler.onCheckpoint(org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleResponse).
split in interface RemoteBundlepublic void close()
throws java.lang.Exception
input receiver.
timer receiver.
This method will throw an exception if bundle processing has failed. Throwable.getSuppressed() will return all the reasons as to why processing has failed.
close in interface java.lang.AutoCloseableclose in interface RemoteBundlejava.lang.Exception