com.cloudera.api.model
Class ApiClusterUtilization

java.lang.Object
  extended by com.cloudera.api.model.ApiClusterUtilization

public class ApiClusterUtilization
extends Object

Utilization report information of a Cluster.


Constructor Summary
ApiClusterUtilization()
           
 
Method Summary
 Double getAvgCpuDailyPeak()
          Average daily peak CPU consumption for the entire cluster during the report window.
 Double getAvgCpuUtilization()
          Average CPU consumption for the entire cluster during the report window.
 Double getAvgMemoryDailyPeak()
          Average daily peak memory consumption (as percentage of total memory) for the entire cluster during the report window.
 Double getAvgMemoryUtilization()
          Average memory consumption (as percentage of total memory) for the entire cluster during the report window.
 Double getAvgWorkloadCpu()
          Average CPU consumption by workloads that ran on the cluster during the report window.
 Double getAvgWorkloadCpuDailyPeak()
          Average daily peak CPU consumption by workloads that ran on the cluster during the report window.
 Double getAvgWorkloadMemory()
          Average memory consumption (as percentage of total memory) by workloads that ran on the cluster during the report window.
 Double getAvgWorkloadMemoryDailyPeak()
          Average daily peak memory consumption (as percentage of total memory) by workloads that ran on the cluster during the report window.
 String getErrorMessage()
          Error message while generating utilization report.
 Double getMaxCpuUtilization()
          Maximum CPU consumption for the entire cluster during the report window.
 Long getMaxCpuUtilizationTimestampMs()
          Timestamp corresponding to maximum CPU utilization for the entire cluster during the report window.
 Double getMaxMemoryUtilization()
          Maximum memory consumption (as percentage of total memory) for the entire cluster during the report window.
 Long getMaxMemoryUtilizationTimestampMs()
          Timestamp corresponding to maximum memory utilization for the entire cluster during the report window.
 Double getMaxWorkloadCpu()
          Maximum CPU consumption by workloads that ran on the cluster during the report window.
 Long getMaxWorkloadCpuTimestampMs()
          Timestamp corresponds to maximum CPU consumption by workloads that ran on the cluster during the report window.
 Double getMaxWorkloadMemory()
          Maximum memory consumption (as percentage of total memory) by workloads that ran on the cluster.
 Long getMaxWorkloadMemoryTimestampMs()
          Timestamp corresponds to maximum memory resource consumption by workloads that ran on the cluster during the report window.
 ApiTenantUtilizationList getTenantUtilizations()
          A list of tenant utilization reports.
 Double getTotalCpuCores()
          Average number of CPU cores available in the cluster during the report window.
 Double getTotalMemory()
          Average physical memory (in bytes) available in the cluster during the report window.
 void setAvgCpuDailyPeak(Double avgCpuDailyPeak)
           
 void setAvgCpuUtilization(Double avgCpuUtilization)
           
 void setAvgMemoryDailyPeak(Double avgMemoryDailyPeak)
           
 void setAvgMemoryUtilization(Double avgMemoryUtilization)
           
 void setAvgWorkloadCpu(Double avgWorkloadCpu)
           
 void setAvgWorkloadCpuDailyPeak(Double avgWorkloadCpuDailyPeak)
           
 void setAvgWorkloadMemory(Double avgWorkloadMemory)
           
 void setAvgWorkloadMemoryDailyPeak(Double avgWorkloadMemoryDailyPeak)
           
 void setErrorMessage(String errorMessage)
           
 void setMaxCpuUtilization(Double maxCpuUtilization)
           
 void setMaxCpuUtilizationTimestampMs(Long maxCpuUtilizationTimestampMs)
           
 void setMaxMemoryUtilization(Double maxMemoryUtilization)
           
 void setMaxMemoryUtilizationTimestampMs(Long maxMemoryUtilizationTimestampMs)
           
 void setMaxWorkloadCpu(Double maxWorkloadCpu)
           
 void setMaxWorkloadCpuTimestampMs(Long maxWorkloadCpuTimestampMs)
           
 void setMaxWorkloadMemory(Double maxWorkloadMemory)
           
 void setMaxWorkloadMemoryTimestampMs(Long maxWorkloadMemoryTimestampMs)
           
 void setTenantUtilizations(ApiTenantUtilizationList tenantUtilizations)
           
 void setTotalCpuCores(Double totalCpuCores)
           
 void setTotalMemory(Double totalMemory)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiClusterUtilization

public ApiClusterUtilization()
Method Detail

getTotalCpuCores

public Double getTotalCpuCores()
Average number of CPU cores available in the cluster during the report window.


setTotalCpuCores

public void setTotalCpuCores(Double totalCpuCores)

getAvgCpuUtilization

public Double getAvgCpuUtilization()
Average CPU consumption for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setAvgCpuUtilization

public void setAvgCpuUtilization(Double avgCpuUtilization)

getMaxCpuUtilization

public Double getMaxCpuUtilization()
Maximum CPU consumption for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setMaxCpuUtilization

public void setMaxCpuUtilization(Double maxCpuUtilization)

getAvgCpuDailyPeak

public Double getAvgCpuDailyPeak()
Average daily peak CPU consumption for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setAvgCpuDailyPeak

public void setAvgCpuDailyPeak(Double avgCpuDailyPeak)

getAvgWorkloadCpu

public Double getAvgWorkloadCpu()
Average CPU consumption by workloads that ran on the cluster during the report window. This includes consumption by user workloads in YARN and Impala.


setAvgWorkloadCpu

public void setAvgWorkloadCpu(Double avgWorkloadCpu)

getMaxWorkloadCpu

public Double getMaxWorkloadCpu()
Maximum CPU consumption by workloads that ran on the cluster during the report window. This includes consumption by user workloads in YARN and Impala.


setMaxWorkloadCpu

public void setMaxWorkloadCpu(Double maxWorkloadCpu)

getAvgWorkloadCpuDailyPeak

public Double getAvgWorkloadCpuDailyPeak()
Average daily peak CPU consumption by workloads that ran on the cluster during the report window. This includes consumption by user workloads in YARN and Impala.


setAvgWorkloadCpuDailyPeak

public void setAvgWorkloadCpuDailyPeak(Double avgWorkloadCpuDailyPeak)

getTotalMemory

public Double getTotalMemory()
Average physical memory (in bytes) available in the cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setTotalMemory

public void setTotalMemory(Double totalMemory)

getAvgMemoryUtilization

public Double getAvgMemoryUtilization()
Average memory consumption (as percentage of total memory) for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setAvgMemoryUtilization

public void setAvgMemoryUtilization(Double avgMemoryUtilization)

getMaxMemoryUtilization

public Double getMaxMemoryUtilization()
Maximum memory consumption (as percentage of total memory) for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setMaxMemoryUtilization

public void setMaxMemoryUtilization(Double maxMemoryUtilization)

getAvgMemoryDailyPeak

public Double getAvgMemoryDailyPeak()
Average daily peak memory consumption (as percentage of total memory) for the entire cluster during the report window. This includes consumption by user workloads in YARN and Impala, as well as consumption by all services running in the cluster.


setAvgMemoryDailyPeak

public void setAvgMemoryDailyPeak(Double avgMemoryDailyPeak)

getAvgWorkloadMemory

public Double getAvgWorkloadMemory()
Average memory consumption (as percentage of total memory) by workloads that ran on the cluster during the report window. This includes consumption by user workloads in YARN and Impala.


setAvgWorkloadMemory

public void setAvgWorkloadMemory(Double avgWorkloadMemory)

getMaxWorkloadMemory

public Double getMaxWorkloadMemory()
Maximum memory consumption (as percentage of total memory) by workloads that ran on the cluster. This includes consumption by user workloads in YARN and Impala


setMaxWorkloadMemory

public void setMaxWorkloadMemory(Double maxWorkloadMemory)

getAvgWorkloadMemoryDailyPeak

public Double getAvgWorkloadMemoryDailyPeak()
Average daily peak memory consumption (as percentage of total memory) by workloads that ran on the cluster during the report window. This includes consumption by user workloads in YARN and Impala.


setAvgWorkloadMemoryDailyPeak

public void setAvgWorkloadMemoryDailyPeak(Double avgWorkloadMemoryDailyPeak)

getTenantUtilizations

public ApiTenantUtilizationList getTenantUtilizations()
A list of tenant utilization reports.


setTenantUtilizations

public void setTenantUtilizations(ApiTenantUtilizationList tenantUtilizations)

getMaxCpuUtilizationTimestampMs

public Long getMaxCpuUtilizationTimestampMs()
Timestamp corresponding to maximum CPU utilization for the entire cluster during the report window.


setMaxCpuUtilizationTimestampMs

public void setMaxCpuUtilizationTimestampMs(Long maxCpuUtilizationTimestampMs)

getMaxMemoryUtilizationTimestampMs

public Long getMaxMemoryUtilizationTimestampMs()
Timestamp corresponding to maximum memory utilization for the entire cluster during the report window.


setMaxMemoryUtilizationTimestampMs

public void setMaxMemoryUtilizationTimestampMs(Long maxMemoryUtilizationTimestampMs)

getMaxWorkloadCpuTimestampMs

public Long getMaxWorkloadCpuTimestampMs()
Timestamp corresponds to maximum CPU consumption by workloads that ran on the cluster during the report window.


setMaxWorkloadCpuTimestampMs

public void setMaxWorkloadCpuTimestampMs(Long maxWorkloadCpuTimestampMs)

getMaxWorkloadMemoryTimestampMs

public Long getMaxWorkloadMemoryTimestampMs()
Timestamp corresponds to maximum memory resource consumption by workloads that ran on the cluster during the report window.


setMaxWorkloadMemoryTimestampMs

public void setMaxWorkloadMemoryTimestampMs(Long maxWorkloadMemoryTimestampMs)

getErrorMessage

public String getErrorMessage()
Error message while generating utilization report.


setErrorMessage

public void setErrorMessage(String errorMessage)

toString

public String toString()
Overrides:
toString in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.