ClusterID- the type of the id of the cluster.
ClientFactory- the type of the
ClusterClientFactoryused to create/retrieve a client to the target cluster.
@Internal public class AbstractSessionClusterExecutor<ClusterID,ClientFactory extends ClusterClientFactory<ClusterID>> extends Object implements PipelineExecutor
|Constructor and Description|
|Modifier and Type||Method and Description|
public CompletableFuture<JobClient> execute(@Nonnull Pipeline pipeline, @Nonnull Configuration configuration) throws Exception
Pipelinebased on the provided configuration and returns a
JobClientwhich allows to interact with the job being executed, e.g. cancel it or take a savepoint.
ATTENTION: The caller is responsible for managing the lifecycle of the returned
JobClient. This means that e.g.
close() should be called explicitly at the
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.