use of org.iobserve.model.persistence.DBException in project iobserve-analysis by research-iobserve.
the class WhitelistFilter method computeAvailableIps.
private Set<String> computeAvailableIps() throws DBException {
final List<AllocationContext> allocations = this.allocationResource.collectAllObjectsByType(AllocationContext.class, AllocationPackage.Literals.ALLOCATION_CONTEXT);
final Set<String> availableIps = new LinkedHashSet<>();
for (final AllocationContext allocation : allocations) {
try {
availableIps.add(this.resourceEnvironmentResource.resolve(allocation.getResourceContainer_AllocationContext()).getEntityName());
} catch (InvocationException | DBException e) {
this.logger.error("Could not resolve resource container during the computation of the IP from: " + allocation, e);
}
}
return availableIps;
}
Aggregations