Class MasterMqttJavaK8SProxy

java.lang.Object
test.de.iip_ecosphere.platform.ecsRuntime.kubernetes.MasterMqttJavaK8SProxy

public class MasterMqttJavaK8SProxy extends Object
  • Field Details

    • localPort

      private static int localPort
    • mqttPort

      private static int mqttPort
    • serverIP

      private static String serverIP
    • serverPort

      private static String serverPort
    • tlsCheck

      private static boolean tlsCheck
  • Constructor Details

    • MasterMqttJavaK8SProxy

      public MasterMqttJavaK8SProxy()
  • Method Details

    • getLocalPort

      public static int getLocalPort()
      Returns the port on localhost to receive new requests.
      Returns:
      the port on localhost to receive new requests
    • setLocalPort

      public static void setLocalPort(int localPort)
      Set the port on localhost to receive new requests.
      Parameters:
      localPort - the port on localhost to receive new requests
    • getServerIP

      public static String getServerIP()
      Returns the IP Address of the server.
      Returns:
      the IP Address of the server
    • setServerIP

      public static void setServerIP(String serverIP)
      Set the IP Address of the server.
      Parameters:
      serverIP - the IP Address of the server
    • getServerPort

      public static String getServerPort()
      Returns the port of the server (either the Aas port or K8S apiserver port).
      Returns:
      the port of the server (either the Aas port or K8S apiserver port)
    • setServerPort

      public static void setServerPort(String serverPort)
      Set the port of the server (either the Aas port or K8S apiserver port).
      Parameters:
      serverPort - the port of the server (either the Aas port or K8S apiserver port).
    • getMqttPort

      public int getMqttPort()
      Returns the mqtt port.
      Returns:
      the mqtt port
    • setMqttPort

      public void setMqttPort(int mqttPort)
      Set the mqtt port.
      Parameters:
      mqttPort - the mqtt port
    • main

      public static void main(String[] args)
      The main method to run the server proxy.
      Parameters:
      args - the main method arguments
    • mainTest

      public void mainTest()
      The main method to run the test server proxy.