Examples of DiskInfo


Examples of com.dianping.cat.status.model.entity.DiskInfo

      period.setHeapUsage(memeryInfo.getHeapUsage());
      period.setNoneHeapUsage(memeryInfo.getNonHeapUsage());
      period.setMemoryFree(memeryInfo.getFree());
      period.setSystemLoadAverage(info.getOs().getSystemLoadAverage());

      DiskInfo diskInfo = info.getDisk();

      if (diskInfo != null) {
        for (DiskVolumeInfo volumeInfo : diskInfo.getDiskVolumes()) {
          Disk disk = new Disk(volumeInfo.getId());

          disk.setTotal(volumeInfo.getTotal());
          disk.setFree(volumeInfo.getFree());
          disk.setUsable(volumeInfo.getUsable());
View Full Code Here

Examples of com.dianping.cat.status.model.entity.DiskInfo

  @Override
  public void visitStatus(StatusInfo status) {
    status.setTimestamp(new Date());
    status.setOs(new OsInfo());
    status.setDisk(new DiskInfo());
    status.setRuntime(new RuntimeInfo());
    status.setMemory(new MemoryInfo());
    status.setThread(new ThreadsInfo());
    status.setMessage(new MessageInfo());
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

    HostInfo info = new HostInfo();
    info.setMemorySize(100);
    info.setProcessorCount(10);
    info.setPhysicalProcessorCount(2);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    info.setMounts(mounts);

    info.setHostName("foo");
    info.setInterfaces("fip_4");
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

  private void registerHost(Host host, boolean firstReg) throws Exception {
    HostInfo info = new HostInfo();
    info.setMemorySize(100);
    info.setProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    info.setMounts(mounts);

    info.setHostName("foo");
    info.setInterfaces("fip_4");
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

    hostInfo.setOS("os_type");
    hostInfo.setMemoryTotal(10);
    hostInfo.setMemorySize(100);
    hostInfo.setProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    hostInfo.setMounts(mounts);

    AgentEnv agentEnv = new AgentEnv();
   
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

  public void testHostInfoImport() throws AmbariException{
    HostInfo info = new HostInfo();
    info.setMemorySize(100);
    info.setPhysicalProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    info.setMounts(mounts);

    info.setHostName("foo");
    info.setInterfaces("fip_4");
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

  private void registerHost(Host host, boolean firstReg) throws Exception {
    HostInfo info = new HostInfo();
    info.setMemorySize(100);
    info.setProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    info.setMounts(mounts);

    info.setHostName("foo");
    info.setInterfaces("fip_4");
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

    hostInfo.setOS("os_type");
    hostInfo.setMemoryTotal(10);
    hostInfo.setMemorySize(100);
    hostInfo.setProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    hostInfo.setMounts(mounts);

    AgentEnv agentEnv = new AgentEnv();
   
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

    hostInfo.setOS("os_type");
    hostInfo.setMemoryTotal(10);
    hostInfo.setMemorySize(100);
    hostInfo.setProcessorCount(10);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    hostInfo.setMounts(mounts);

    AgentEnv agentEnv = new AgentEnv();
   
View Full Code Here

Examples of org.apache.ambari.server.agent.DiskInfo

    HostInfo info = new HostInfo();
    info.setMemorySize(100);
    info.setProcessorCount(10);
    info.setPhysicalProcessorCount(2);
    List<DiskInfo> mounts = new ArrayList<DiskInfo>();
    mounts.add(new DiskInfo("/dev/sda", "/mnt/disk1",
        "5000000", "4000000", "10%", "size", "fstype"));
    info.setMounts(mounts);

    info.setHostName("foo");
    info.setInterfaces("fip_4");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.