Package cn.sliew.flinkful.rest.http
Class JobHttpClient
- java.lang.Object
-
- cn.sliew.flinkful.rest.http.AsyncClient
-
- cn.sliew.flinkful.rest.http.JobHttpClient
-
- All Implemented Interfaces:
cn.sliew.flinkful.rest.base.JobClient
public class JobHttpClient extends AsyncClient implements cn.sliew.flinkful.rest.base.JobClient
-
-
Constructor Summary
Constructors Constructor Description JobHttpClient(okhttp3.OkHttpClient client, java.lang.String webInterfaceURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobAccumulatorsInfo>jobAccumulators(java.lang.String jobId, java.util.Optional<java.lang.Boolean> includeSerializedValue)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointConfigInfo>jobCheckpointConfig(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointStatistics>jobCheckpointDetail(java.lang.String jobId, java.lang.Long checkpointId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointingStatistics>jobCheckpoints(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.TaskCheckpointStatisticsWithSubtaskDetails>jobCheckpointSubtaskDetail(java.lang.String jobId, java.lang.Long checkpointId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobConfigInfo>jobConfig(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobDetailsInfo>jobDetail(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobExceptionsInfoWithHistory>jobException(java.lang.String jobId, java.util.Optional<java.lang.String> maxExceptions)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobExecutionResultResponseBody>jobExecutionResult(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody>jobMetrics(java.lang.String jobId, java.util.Optional<java.lang.String> get)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobPlanInfo>jobPlan(java.lang.String jobId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse>jobRescale(java.lang.String jobId, java.lang.Integer parallelism)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationResult<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationInfo>>jobRescaleResult(java.lang.String jobId, java.lang.String triggerId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.messages.webmonitor.JobIdsWithStatusOverview>jobs()java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse>jobSavepoint(java.lang.String jobId, org.apache.flink.runtime.rest.messages.job.savepoints.SavepointTriggerRequestBody requestBody)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationResult<org.apache.flink.runtime.rest.messages.job.savepoints.SavepointInfo>>jobSavepointResult(java.lang.String jobId, java.lang.String triggerId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBody>jobsMetric(java.util.Optional<java.lang.String> get, java.util.Optional<java.lang.String> agg, java.util.Optional<java.lang.String> jobs)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.messages.webmonitor.MultipleJobsDetails>jobsOverview()java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse>jobStop(java.lang.String jobId, org.apache.flink.runtime.rest.messages.job.savepoints.stop.StopWithSavepointRequestBody requestBody)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobSubmitResponseBody>jobSubmit(org.apache.flink.runtime.rest.messages.job.JobSubmitRequestBody requestBody)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody>jobTerminate(java.lang.String jobId, java.lang.String mode)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexAccumulatorsInfo>jobVertexAccumulators(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexBackPressureInfo>jobVertexBackPressure(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexDetailsInfo>jobVertexDetail(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.threadinfo.JobVertexFlameGraph>jobVertexFlameGraph(java.lang.String jobId, java.lang.String vertexId, java.lang.String type)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody>jobVertexMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.String get)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtasksAllAccumulatorsInfo>jobVertexSubtaskAccumulators(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptAccumulatorsInfo>jobVertexSubtaskAttemptAccumulators(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.Integer attempt)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptDetailsInfo>jobVertexSubtaskAttemptDetail(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.Integer attempt)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptDetailsInfo>jobVertexSubtaskDetail(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody>jobVertexSubtaskMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.String get)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody>jobVertexSubtaskMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.String get, java.lang.String agg, java.lang.String subtasks)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.SubtasksTimesInfo>jobVertexSubtaskTimes(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexTaskManagersInfo>jobVertexTaskManagers(java.lang.String jobId, java.lang.String vertexId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody>jobVertexWatermarks(java.lang.String jobId, java.lang.String vertexId)-
Methods inherited from class cn.sliew.flinkful.rest.http.AsyncClient
remoteCall, remoteCall, remoteCall
-
-
-
-
Method Detail
-
jobsOverview
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.messages.webmonitor.MultipleJobsDetails> jobsOverview() throws java.io.IOException- Specified by:
jobsOverviewin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobsMetric
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBody> jobsMetric(java.util.Optional<java.lang.String> get, java.util.Optional<java.lang.String> agg, java.util.Optional<java.lang.String> jobs) throws java.io.IOException- Specified by:
jobsMetricin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobs
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.messages.webmonitor.JobIdsWithStatusOverview> jobs() throws java.io.IOException- Specified by:
jobsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobDetailsInfo> jobDetail(java.lang.String jobId) throws java.io.IOException- Specified by:
jobDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobSubmit
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobSubmitResponseBody> jobSubmit(org.apache.flink.runtime.rest.messages.job.JobSubmitRequestBody requestBody) throws java.io.IOException- Specified by:
jobSubmitin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobTerminate
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody> jobTerminate(java.lang.String jobId, java.lang.String mode) throws java.io.IOException- Specified by:
jobTerminatein interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobAccumulators
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobAccumulatorsInfo> jobAccumulators(java.lang.String jobId, java.util.Optional<java.lang.Boolean> includeSerializedValue) throws java.io.IOException- Specified by:
jobAccumulatorsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobCheckpoints
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointingStatistics> jobCheckpoints(java.lang.String jobId) throws java.io.IOException- Specified by:
jobCheckpointsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobCheckpointConfig
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointConfigInfo> jobCheckpointConfig(java.lang.String jobId) throws java.io.IOException- Specified by:
jobCheckpointConfigin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobCheckpointDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.CheckpointStatistics> jobCheckpointDetail(java.lang.String jobId, java.lang.Long checkpointId) throws java.io.IOException- Specified by:
jobCheckpointDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobCheckpointSubtaskDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.checkpoints.TaskCheckpointStatisticsWithSubtaskDetails> jobCheckpointSubtaskDetail(java.lang.String jobId, java.lang.Long checkpointId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobCheckpointSubtaskDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobConfig
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobConfigInfo> jobConfig(java.lang.String jobId) throws java.io.IOException- Specified by:
jobConfigin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobException
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobExceptionsInfoWithHistory> jobException(java.lang.String jobId, java.util.Optional<java.lang.String> maxExceptions) throws java.io.IOException- Specified by:
jobExceptionin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobExecutionResult
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.JobExecutionResultResponseBody> jobExecutionResult(java.lang.String jobId) throws java.io.IOException- Specified by:
jobExecutionResultin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobMetrics
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody> jobMetrics(java.lang.String jobId, java.util.Optional<java.lang.String> get) throws java.io.IOException- Specified by:
jobMetricsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobPlan
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobPlanInfo> jobPlan(java.lang.String jobId) throws java.io.IOException- Specified by:
jobPlanin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobRescale
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse> jobRescale(java.lang.String jobId, java.lang.Integer parallelism) throws java.io.IOException- Specified by:
jobRescalein interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobRescaleResult
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationResult<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationInfo>> jobRescaleResult(java.lang.String jobId, java.lang.String triggerId) throws java.io.IOException- Specified by:
jobRescaleResultin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobSavepoint
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse> jobSavepoint(java.lang.String jobId, org.apache.flink.runtime.rest.messages.job.savepoints.SavepointTriggerRequestBody requestBody) throws java.io.IOException- Specified by:
jobSavepointin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobSavepointResult
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.AsynchronousOperationResult<org.apache.flink.runtime.rest.messages.job.savepoints.SavepointInfo>> jobSavepointResult(java.lang.String jobId, java.lang.String triggerId) throws java.io.IOException- Specified by:
jobSavepointResultin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobStop
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.async.TriggerResponse> jobStop(java.lang.String jobId, org.apache.flink.runtime.rest.messages.job.savepoints.stop.StopWithSavepointRequestBody requestBody) throws java.io.IOException- Specified by:
jobStopin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexDetailsInfo> jobVertexDetail(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexAccumulators
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexAccumulatorsInfo> jobVertexAccumulators(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexAccumulatorsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexBackPressure
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexBackPressureInfo> jobVertexBackPressure(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexBackPressurein interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexFlameGraph
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.threadinfo.JobVertexFlameGraph> jobVertexFlameGraph(java.lang.String jobId, java.lang.String vertexId, java.lang.String type) throws java.io.IOException- Specified by:
jobVertexFlameGraphin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexMetrics
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody> jobVertexMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.String get) throws java.io.IOException- Specified by:
jobVertexMetricsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskAccumulators
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtasksAllAccumulatorsInfo> jobVertexSubtaskAccumulators(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexSubtaskAccumulatorsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskMetrics
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody> jobVertexSubtaskMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.String get, java.lang.String agg, java.lang.String subtasks) throws java.io.IOException- Specified by:
jobVertexSubtaskMetricsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptDetailsInfo> jobVertexSubtaskDetail(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex) throws java.io.IOException- Specified by:
jobVertexSubtaskDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskAttemptDetail
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptDetailsInfo> jobVertexSubtaskAttemptDetail(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.Integer attempt) throws java.io.IOException- Specified by:
jobVertexSubtaskAttemptDetailin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskAttemptAccumulators
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.SubtaskExecutionAttemptAccumulatorsInfo> jobVertexSubtaskAttemptAccumulators(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.Integer attempt) throws java.io.IOException- Specified by:
jobVertexSubtaskAttemptAccumulatorsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskMetrics
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody> jobVertexSubtaskMetrics(java.lang.String jobId, java.lang.String vertexId, java.lang.Integer subtaskindex, java.lang.String get) throws java.io.IOException- Specified by:
jobVertexSubtaskMetricsin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexSubtaskTimes
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.SubtasksTimesInfo> jobVertexSubtaskTimes(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexSubtaskTimesin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexTaskManagers
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobVertexTaskManagersInfo> jobVertexTaskManagers(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexTaskManagersin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
jobVertexWatermarks
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody> jobVertexWatermarks(java.lang.String jobId, java.lang.String vertexId) throws java.io.IOException- Specified by:
jobVertexWatermarksin interfacecn.sliew.flinkful.rest.base.JobClient- Throws:
java.io.IOException
-
-