Package com.alibaba.jstorm.container.cgroup.core

Examples of com.alibaba.jstorm.container.cgroup.core.CpuCore


      throws SecurityException, IOException {
    CgroupCommon workerGroup = new CgroupCommon(workerId, h,
        this.rootCgroup);
    this.center.create(workerGroup);
    CgroupCore cpu = workerGroup.getCores().get(SubSystemType.cpu);
    CpuCore cpuCore = (CpuCore) cpu;
    cpuCore.setCpuShares(cpuNum * ONE_CPU_SLOT);
    StringBuilder sb = new StringBuilder();
    sb.append("cgexec -g cpu:").append(workerGroup.getName()).append(" ");
    return sb.toString();
  }
View Full Code Here


        break;
      case cpuset:
        result.put(SubSystemType.cpuset, new CpusetCore(dir));
        break;
      case cpu:
        result.put(SubSystemType.cpu, new CpuCore(dir));
        break;
      case devices:
        result.put(SubSystemType.devices, new DevicesCore(dir));
        break;
      case freezer:
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.container.cgroup.core.CpuCore

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.