Class ApplicationInstancesAasClient

java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
de.iip_ecosphere.platform.support.iip_aas.ApplicationInstancesAasClient

public class ApplicationInstancesAasClient extends SubmodelClient
A client to access the application instances.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • ApplicationInstancesAasClient

      public ApplicationInstancesAasClient() throws IOException
      Creates a client instance.
      Throws:
      IOException - if accessing the AAS/submodel fails
  • Method Details

    • getInstanceCount

      public int getInstanceCount(String appId)
      Return the number of application instances with the given appId irrespective of deployment plans.
      Parameters:
      appId - the application id to look for
      Returns:
      the number of instances
    • getInstanceCount

      public int getInstanceCount(String appId, String planId)
      Return the number of application instances with the given appId irrespective of deployment plans.
      Parameters:
      appId - the application id to look for
      planId - the deployment plan id to filter for, may be empty or null to not filter for deployment plans
      Returns:
      the number of instances