Search in sources :

Example 1 with PluginDescriptorData

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());
}
Also used : PluginDescriptor(org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor) ResourceManager(org.ow2.proactive.resourcemanager.frontend.ResourceManager)

Example 2 with PluginDescriptorData

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());
}
Also used : PluginDescriptor(org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor) ResourceManager(org.ow2.proactive.resourcemanager.frontend.ResourceManager)

Aggregations

ResourceManager (org.ow2.proactive.resourcemanager.frontend.ResourceManager)2 PluginDescriptor (org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor)2