/** * Returns all the current alive or pending profiles for the given profile */ public static List<Container> aliveOrPendingContainersForProfile(String version, String profile, FabricService fabricService) { Container[] allContainers = fabricService.getContainers(); return aliveOrPendingContainersForProfile(version, profile, allContainers); }
/** * Returns all the current alive or pending profiles for the given profile */ public static List<Container> aliveOrPendingContainersForProfile(String profile, FabricService fabricService) { Container[] allContainers = fabricService.getContainers(); return aliveOrPendingContainersForProfile(profile, allContainers); }
List<Container> containers = Containers.aliveOrPendingContainersForProfile(version, profile, service); int count = containers.size(); int delta = minimumInstances - count;