use of org.ow2.proactive.resourcemanager.nodesource.common.NodeSourceConfiguration in project scheduling by ow2-proactive.
the class RMCore method getNodeSourceConfiguration.
/**
* {@inheritDoc}
*/
@Override
public NodeSourceConfiguration getNodeSourceConfiguration(String nodeSourceName) {
NodeSource nodeSource = getDefinedNodeSourceOrFail(nodeSourceName);
NodeSourceDescriptor nodeSourceDescriptor = nodeSource.getDescriptor();
PluginDescriptor infrastructurePluginDescriptor = this.nodeSourceParameterHelper.getPluginDescriptor(nodeSourceDescriptor.getInfrastructureType(), nodeSourceDescriptor.getInfrastructureParameters(), nodeSourceName);
PluginDescriptor policyPluginDescriptor = this.nodeSourceParameterHelper.getPluginDescriptor(nodeSourceDescriptor.getPolicyType(), nodeSourceDescriptor.getPolicyParameters(), nodeSourceName);
return new NodeSourceConfiguration(nodeSourceName, nodeSource.nodesRecoverable(), infrastructurePluginDescriptor, policyPluginDescriptor);
}
Aggregations