use of org.ow2.proactive.resourcemanager.frontend.PluginDescriptorData in project scheduling by ow2-proactive.
the class RMRest method getSupportedNodeSourceInfrastructures.
@Override
public Collection<PluginDescriptorData> getSupportedNodeSourceInfrastructures(String sessionId) throws NotConnectedException, PermissionRestException {
ResourceManager rm = checkAccess(sessionId);
Collection<PluginDescriptor> pluginDescriptors = orThrowRpe(rm.getSupportedNodeSourceInfrastructures());
return pluginDescriptors.stream().map(PluginDescriptorData::new).collect(Collectors.toList());
}
use of org.ow2.proactive.resourcemanager.frontend.PluginDescriptorData in project scheduling by ow2-proactive.
the class RMRest method getSupportedNodeSourcePolicies.
@Override
public Collection<PluginDescriptorData> getSupportedNodeSourcePolicies(String sessionId) throws NotConnectedException, PermissionRestException {
ResourceManager rm = checkAccess(sessionId);
Collection<PluginDescriptor> pluginDescriptors = orThrowRpe(rm.getSupportedNodeSourcePolicies());
return pluginDescriptors.stream().map(PluginDescriptorData::new).collect(Collectors.toList());
}
Aggregations