Search in sources :

Example 1 with PluginDescriptor

use of org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor in project scheduling by ow2-proactive.

the class RMCore method getPluginsDescriptor.

private Collection<PluginDescriptor> getPluginsDescriptor(Collection<Class<?>> plugins) {
    Collection<PluginDescriptor> descriptors = new ArrayList<>(plugins.size());
    for (Class<?> cls : plugins) {
        Map<String, String> defaultValues = new HashMap<>();
        descriptors.add(new PluginDescriptor(cls, defaultValues));
    }
    return descriptors;
}
Also used : PluginDescriptor(org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 PluginDescriptor (org.ow2.proactive.resourcemanager.nodesource.common.PluginDescriptor)1