Search in sources :

Example 1 with NodeSourceConfiguration

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

Aggregations

NodeSource (org.ow2.proactive.resourcemanager.nodesource.NodeSource)1 NodeSourceDescriptor (org.ow2.proactive.resourcemanager.nodesource.NodeSourceDescriptor)1 NodeSourceConfiguration (org.ow2.proactive.resourcemanager.nodesource.common.NodeSourceConfiguration)1 PluginDescriptor (org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor)1