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

public class MasterK8SAas extends Object
Create client side aas for the worker node.
Author:
Ahmad Alamoush, SSE
  • Field Details

    • serverIP

      private static String serverIP
    • serverPort

      private static String serverPort
    • aasPort

      private static int aasPort
    • requestMapIDs

      private static Map<String,okhttp3.Response> requestMapIDs
    • aasK8SJavaProxy

      private static de.iip_ecosphere.platform.ecsRuntime.kubernetes.proxy.K8SJavaProxy aasK8SJavaProxy
    • vabPort

      private int vabPort
  • Constructor Details

    • MasterK8SAas

      public MasterK8SAas(String serverIP, String serverPort, int vabPort, int aasPort, boolean tlsCheck)
      Creates a Client K8S aas instance.
      Parameters:
      serverIP - the IP Address of the server
      serverPort - the port of the server (either the Aas port or K8S apiserver port)
      vabPort - the vab port
      aasPort - the aas port
      tlsCheck - check to use tls security
  • Method Details

    • getServerIP

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

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

      public 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 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
    • startLocalAas

      public ArrayList<de.iip_ecosphere.platform.support.Server> startLocalAas() throws IOException
      Start the local aas.
      Returns:
      the running servers
      Throws:
      IOException
    • startLocalTLSAas

      public ArrayList<de.iip_ecosphere.platform.support.Server> startLocalTLSAas() throws IOException
      Start the local TLS aas.
      Returns:
      the running servers
      Throws:
      IOException
    • sendToK8S

      private static Object sendToK8S(Object[] params)
      get response to request.
      Parameters:
      params - the call parameters, only the first is evaluated
      Returns:
      the response string
    • sendWatchToK8S

      private static Object sendWatchToK8S(Object[] params)
      get response to request.
      Parameters:
      params - the call parameters, only the first is evaluated
      Returns:
      the response string