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

public class WorkerK8SAas 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
    • submodel

      private static de.iip_ecosphere.platform.support.aas.Submodel submodel
    • vabPort

      private int vabPort
    • aasPort

      private int aasPort
  • Constructor Details

    • WorkerK8SAas

      public WorkerK8SAas(String serverIP, String serverPort, int vabPort, int aasPort)
      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
  • 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 - if deployment fails
    • sendToAAS

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

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