public void configureNodeInfo()
throws ConfigurationException
{
//By default, concurrency is set to the number of CPUs in the machine
NodeInfo nodeInfo = ComputeNodeUtils.obtainNodeInformation();
//However, a configuration property can be used to override the default
String concurrentJobsStr = config.getProperty(PROP_NUM_CONCURRENT_JOBS);
if (concurrentJobsStr != null)
{
int concurrency = Integer.parseInt(concurrentJobsStr);
if (concurrency > 0)
{
nodeInfo.setCores(concurrency);
}
}
runtime.setNodeInfo(nodeInfo);