Class WorkerAasJavaK8SProxy

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

public class WorkerAasJavaK8SProxy extends Object
  • Field Details

    • localPort

      private static int localPort
    • vabPort

      private static int vabPort
    • aasPort

      private static int aasPort
    • serverIP

      private static String serverIP
    • serverPort

      private static String serverPort
    • tlsCheck

      private static boolean tlsCheck
    • serverSocketList

      private static ArrayList<ServerSocket> serverSocketList
  • Constructor Details

    • WorkerAasJavaK8SProxy

      public WorkerAasJavaK8SProxy()
  • 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).
    • getVabPort

      public int getVabPort()
      Returns the vab port.
      Returns:
      the vab port
    • setVabPort

      public void setVabPort(int vabPort)
      Set the vab port.
      Parameters:
      vabPort - the vab port
    • getAasPort

      public int getAasPort()
      Returns the aas port.
      Returns:
      the aas port
    • setAasPort

      public void setAasPort(int aasPort)
      Set the aas port.
      Parameters:
      aasPort - the aas 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.
    • startMultiThreaded

      public static void startMultiThreaded(de.iip_ecosphere.platform.ecsRuntime.kubernetes.proxy.K8SJavaProxy aasK8SJavaProxy, int localPort) throws UnrecoverableKeyException, KeyManagementException, NoSuchAlgorithmException, KeyStoreException, CertificateException, InvalidKeySpecException, IOException
      Start multi-threads method to receive and process requests.
      Parameters:
      aasK8SJavaProxy - the proxy used to receive the new requests
      localPort - is the port on the localhost to receive the new requests
      Throws:
      IOException
      InvalidKeySpecException
      CertificateException
      KeyStoreException
      NoSuchAlgorithmException
      KeyManagementException
      UnrecoverableKeyException