Class ClusterHttpClient

  • All Implemented Interfaces:
    cn.sliew.flinkful.rest.base.ClusterClient

    public class ClusterHttpClient
    extends AsyncClient
    implements cn.sliew.flinkful.rest.base.ClusterClient
    • Constructor Summary

      Constructors 
      Constructor Description
      ClusterHttpClient​(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.handler.legacy.messages.ClusterOverviewWithVersion> overview()  
      java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody> shutdownCluster()  
      • Methods inherited from class java.lang.Object

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

      • ClusterHttpClient

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

      • overview

        public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.handler.legacy.messages.ClusterOverviewWithVersion> overview()
                                                                                                                                          throws java.io.IOException
        Specified by:
        overview in interface cn.sliew.flinkful.rest.base.ClusterClient
        Throws:
        java.io.IOException
      • shutdownCluster

        public java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody> shutdownCluster()
                                                                                                                         throws java.io.IOException
        Specified by:
        shutdownCluster in interface cn.sliew.flinkful.rest.base.ClusterClient
        Throws:
        java.io.IOException