use of com.cloud.network.element.RedundantResource in project cloudstack by apache.
the class NetworkOrchestrator method getResourceCount.
@Override
public int getResourceCount(Network network) {
List<Provider> providers = getNetworkProviders(network.getId());
int resourceCount = 0;
for (NetworkElement element : networkElements) {
if (providers.contains(element.getProvider())) {
//currently only one element implements the redundant resource interface
if (element instanceof RedundantResource) {
resourceCount = ((RedundantResource) element).getResourceCount(network);
break;
}
}
}
return resourceCount;
}
Aggregations