public final class MiniClusterJobClient extends Object implements org.apache.flink.core.execution.JobClient, CoordinationRequestGateway
JobClient for a MiniCluster.| 限定符和类型 | 类和说明 |
|---|---|
static class |
MiniClusterJobClient.JobFinalizationBehavior
Determines the behavior of the
MiniClusterJobClient when the job finishes. |
| 构造器和说明 |
|---|
MiniClusterJobClient(org.apache.flink.api.common.JobID jobID,
MiniCluster miniCluster,
ClassLoader classLoader,
MiniClusterJobClient.JobFinalizationBehavior finalizationBehaviour)
|
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Void> |
cancel() |
CompletableFuture<Map<String,Object>> |
getAccumulators() |
CompletableFuture<org.apache.flink.api.common.JobExecutionResult> |
getJobExecutionResult() |
org.apache.flink.api.common.JobID |
getJobID() |
CompletableFuture<org.apache.flink.api.common.JobStatus> |
getJobStatus() |
void |
reportHeartbeat(long expiredTimestamp) |
CompletableFuture<CoordinationResponse> |
sendCoordinationRequest(OperatorID operatorId,
CoordinationRequest request)
Send out a request to a specified coordinator and return the response.
|
CompletableFuture<String> |
stopWithSavepoint(boolean terminate,
String savepointDirectory,
org.apache.flink.core.execution.SavepointFormatType formatType) |
CompletableFuture<String> |
triggerSavepoint(String savepointDirectory,
org.apache.flink.core.execution.SavepointFormatType formatType) |
public MiniClusterJobClient(org.apache.flink.api.common.JobID jobID,
MiniCluster miniCluster,
ClassLoader classLoader,
MiniClusterJobClient.JobFinalizationBehavior finalizationBehaviour)
MiniClusterJobClient for the given JobID and MiniCluster.
This will shut down the MiniCluster after job result retrieval if shutdownCluster is true.public org.apache.flink.api.common.JobID getJobID()
getJobID 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<org.apache.flink.api.common.JobStatus> getJobStatus()
getJobStatus 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<Void> cancel()
cancel 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<String> stopWithSavepoint(boolean terminate, @Nullable String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType)
stopWithSavepoint 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<String> triggerSavepoint(@Nullable String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType)
triggerSavepoint 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<Map<String,Object>> getAccumulators()
getAccumulators 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<org.apache.flink.api.common.JobExecutionResult> getJobExecutionResult()
getJobExecutionResult 在接口中 org.apache.flink.core.execution.JobClientpublic CompletableFuture<CoordinationResponse> sendCoordinationRequest(OperatorID operatorId, CoordinationRequest request)
CoordinationRequestGatewaysendCoordinationRequest 在接口中 CoordinationRequestGatewayoperatorId - specifies which coordinator to receive the requestrequest - the request to sendpublic void reportHeartbeat(long expiredTimestamp)
reportHeartbeat 在接口中 org.apache.flink.core.execution.JobClientCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.