com.github.dockerjava.api.model.CpuUsageConfig Maven / Gradle / Ivy
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.annotation.CheckForNull;
import java.io.Serializable;
import java.util.List;
/**
* Used in {@link Statistics}
*
* @author Yuting Liu
*/
@EqualsAndHashCode
@ToString
public class CpuUsageConfig extends DockerObject implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("total_usage")
private Long totalUsage;
@JsonProperty("percpu_usage")
private List percpuUsage;
@JsonProperty("usage_in_kernelmode")
private Long usageInKernelmode;
@JsonProperty("usage_in_usermode")
private Long usageInUsermode;
/**
* @see #totalUsage
*/
@CheckForNull
public Long getTotalUsage() {
return totalUsage;
}
/**
* @see #percpuUsage
*/
@CheckForNull
public List getPercpuUsage() {
return percpuUsage;
}
/**
* @see #usageInKernelmode
*/
@CheckForNull
public Long getUsageInKernelmode() {
return usageInKernelmode;
}
/**
* @see #usageInUsermode
*/
@CheckForNull
public Long getUsageInUsermode() {
return usageInUsermode;
}
}