public class StandaloneRestClusterClient extends AbstractFlinkJobsClient<org.apache.flink.client.deployment.StandaloneClusterId>
EMPTY_ARGUMENTS| 构造器和说明 |
|---|
StandaloneRestClusterClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.runtime.messages.Acknowledge |
cancel(org.apache.flink.api.common.JobID jobId)
取消flink作业
|
org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> |
getClusterClient()
使用默认配置获取flink集群REST客户端
|
org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> |
getClusterClient(Properties customConf)
使用自定义配置获取flink集群REST客户端
|
org.apache.flink.runtime.rest.messages.job.JobDetailsInfo |
getJobDetails(org.apache.flink.api.common.JobID jobId) |
org.apache.flink.api.common.JobStatus |
getJobStatus(org.apache.flink.api.common.JobID jobId)
获取flink作业状态
|
org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> |
getRestClusterClient()
使用默认配置获取flink集群REST客户端。
|
org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> |
getRestClusterClient(Properties customConf)
使用自定义配置获取flink集群REST客户端。
|
Collection<org.apache.flink.runtime.client.JobStatusMessage> |
listJobs()
列出集群上当前正在运行和已完成的flink作业
|
org.apache.flink.runtime.jobmaster.JobResult |
requestJobResult(org.apache.flink.api.common.JobID jobId)
请求flink作业运行结果
|
String |
stop(org.apache.flink.api.common.JobID jobId)
停止flink-jobs应用程序
|
org.apache.flink.api.common.JobID |
submit(FlinkJobs flinkJobs)
提交flink-jobs应用程序
|
getArguments, getEntryPointClassName, getJar, isEmptyArguments, validateJarpublic org.apache.flink.api.common.JobID submit(FlinkJobs flinkJobs) throws Exception
FlinkJobsClientflinkJobs - flink-jobs配置对象Exception - 发生异常public org.apache.flink.runtime.messages.Acknowledge cancel(org.apache.flink.api.common.JobID jobId)
throws Exception
FlinkJobsClientjobId - flink作业标识Exception - 发生异常public Collection<org.apache.flink.runtime.client.JobStatusMessage> listJobs() throws Exception
FlinkJobsClientException - 发生异常public org.apache.flink.runtime.rest.messages.job.JobDetailsInfo getJobDetails(org.apache.flink.api.common.JobID jobId)
throws Exception
Exceptionpublic org.apache.flink.api.common.JobStatus getJobStatus(org.apache.flink.api.common.JobID jobId)
throws Exception
FlinkJobsClientjobId - flink作业标识Exception - 发生异常public org.apache.flink.runtime.jobmaster.JobResult requestJobResult(org.apache.flink.api.common.JobID jobId)
throws Exception
FlinkJobsClientjobId - flink作业标识Exception - 发生异常public String stop(org.apache.flink.api.common.JobID jobId) throws Exception
FlinkJobsClientjobId - flink作业标识Exception - 发生异常public org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> getClusterClient()
throws Exception
FlinkJobsClientException - 发生异常public org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> getClusterClient(Properties customConf) throws Exception
FlinkJobsClientcustomConf - 自定义配置Exception - 发生异常public org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> getRestClusterClient()
throws Exception
FlinkJobsClientException - 发生异常public org.apache.flink.client.program.rest.RestClusterClient<org.apache.flink.client.deployment.StandaloneClusterId> getRestClusterClient(Properties customConf) throws Exception
FlinkJobsClientcustomConf - 自定义配置Exception - 发生异常Copyright © 2022 10MG. All rights reserved.