Package cn.sliew.flinkful.rest.http
Class JarHttpClient
- java.lang.Object
-
- cn.sliew.flinkful.rest.http.AsyncClient
-
- cn.sliew.flinkful.rest.http.JarHttpClient
-
- All Implemented Interfaces:
cn.sliew.flinkful.rest.base.JarClient
public class JarHttpClient extends AsyncClient implements cn.sliew.flinkful.rest.base.JarClient
-
-
Constructor Summary
Constructors Constructor Description JarHttpClient(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.EmptyResponseBody>deleteJar(java.lang.String jarId)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobPlanInfo>jarPlan(java.lang.String jarId, org.apache.flink.runtime.webmonitor.handlers.JarPlanRequestBody requestBody)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarRunResponseBody>jarRun(java.lang.String jarId, org.apache.flink.runtime.webmonitor.handlers.JarRunRequestBody requestBody)java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarListInfo>jars()java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarUploadResponseBody>uploadJar(java.lang.String filePath)-
Methods inherited from class cn.sliew.flinkful.rest.http.AsyncClient
remoteCall, remoteCall, remoteCall
-
-
-
-
Method Detail
-
jars
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarListInfo> jars() throws java.io.IOException- Specified by:
jarsin interfacecn.sliew.flinkful.rest.base.JarClient- Throws:
java.io.IOException
-
uploadJar
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarUploadResponseBody> uploadJar(java.lang.String filePath) throws java.io.IOException- Specified by:
uploadJarin interfacecn.sliew.flinkful.rest.base.JarClient- Throws:
java.io.IOException
-
deleteJar
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody> deleteJar(java.lang.String jarId) throws java.io.IOException- Specified by:
deleteJarin interfacecn.sliew.flinkful.rest.base.JarClient- Throws:
java.io.IOException
-
jarPlan
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.JobPlanInfo> jarPlan(java.lang.String jarId, org.apache.flink.runtime.webmonitor.handlers.JarPlanRequestBody requestBody) throws java.io.IOException- Specified by:
jarPlanin interfacecn.sliew.flinkful.rest.base.JarClient- Throws:
java.io.IOException
-
jarRun
public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarRunResponseBody> jarRun(java.lang.String jarId, org.apache.flink.runtime.webmonitor.handlers.JarRunRequestBody requestBody) throws java.io.IOException- Specified by:
jarRunin interfacecn.sliew.flinkful.rest.base.JarClient- Throws:
java.io.IOException
-
-