Package uk.org.microbase.scheduler.dist.data

Examples of uk.org.microbase.scheduler.dist.data.NodeInfo


      String javaVmVersion = System.getProperty("java.vm.version");
      String javaVmVendor = System.getProperty("java.vm.vendor");

      long availDisk = getFreeDisk();

      NodeInfo info = new NodeInfo();
      info.setCores(numCpus);
      info.setHostname(hostname);
      info.setJavaVersion(javaVersion);
      info.setJavaVmVendor(javaVmVendor);
      info.setJavaVmVersion(javaVmVersion);
      info.setJvmTotalRamSize(jvmTotalRam);
      info.setOsArch(osArch);
      info.setOsName(osName);
      info.setOsVersion(osVersion);

      return info;
    }
    catch (Exception e)
    {
View Full Code Here


  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);

View Full Code Here

TOP

Related Classes of uk.org.microbase.scheduler.dist.data.NodeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.