@Override
  protected Set<Resource> getResources() {
    return getClusterDefinition().getTaskResources();
  }
Construct a resource provider based on the given cluster definition.

@param clusterDefinition  the cluster definition
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/TaskProvider.java