All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dockerjava.api.model.CpuUsageConfig Maven / Gradle / Ivy

There is a newer version: 3.4.0_1
Show newest version
package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.annotation.CheckForNull;
import java.io.Serializable;
import java.util.List;

/**
 * Used in {@link Statistics}
 *
 * @author Yuting Liu
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CpuUsageConfig 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy