Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarHttpClient

        public JarHttpClient​(okhttp3.OkHttpClient client,
                             java.lang.String webInterfaceURL)
    • Method Detail

      • jars

        public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.webmonitor.handlers.JarListInfo> jars()
                                                                                                              throws java.io.IOException
        Specified by:
        jars in interface cn.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:
        uploadJar in interface cn.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:
        deleteJar in interface cn.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:
        jarPlan in interface cn.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:
        jarRun in interface cn.sliew.flinkful.rest.base.JarClient
        Throws:
        java.io.IOException