Class ApplicationInstancesAasClient
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
de.iip_ecosphere.platform.support.iip_aas.ApplicationInstancesAasClient
A client to access the application instances.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetInstanceCount(String appId) Return the number of application instances with the givenappIdirrespective of deployment plans.intgetInstanceCount(String appId, String planId) Return the number of application instances with the givenappIdirrespective of deployment plans.Methods inherited from class de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
checkNotNull, checkString, clear, getOperation, getOperation, getProperty, getProperty, getPropertyStringValue, getSubmodel, requestRefresh
-
Constructor Details
-
ApplicationInstancesAasClient
Creates a client instance.- Throws:
IOException- if accessing the AAS/submodel fails
-
-
Method Details
-
getInstanceCount
Return the number of application instances with the givenappIdirrespective of deployment plans.- Parameters:
appId- the application id to look for- Returns:
- the number of instances
-
getInstanceCount
Return the number of application instances with the givenappIdirrespective of deployment plans.- Parameters:
appId- the application id to look forplanId- the deployment plan id to filter for, may be empty or null to not filter for deployment plans- Returns:
- the number of instances
-