Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions src/main/java/com/github/dockerjava/api/model/BlkioStatsConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
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)
class BlkioStatsConfig implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("io_service_bytes_recursive")
private List<Long> ioServiceBytesRecursive;

@JsonProperty("io_serviced_recursive")
private List<Long> ioServicedRecursive;

@JsonProperty("io_queue_recursive")
private List<Long> ioQueueRecursive;

@JsonProperty("io_service_time_recursive")
private List<Long> ioServiceTimeRecursive;

@JsonProperty("io_wait_time_recursive")
private List<Long> ioWaitTimeRecursive;

@JsonProperty("io_merged_recursive")
private List<Long> ioMergedRecursive;

@JsonProperty("io_time_recursive")
private List<Long> ioTimeRecursive;

@JsonProperty("sectors_recursive")
private List<Long> sectorsRecursive;

/**
* @see #ioServiceBytesRecursive
*/
@CheckForNull
public List<Long> getIoServiceBytesRecursive() {
return ioServiceBytesRecursive;
}

/**
* @see #ioServicedRecursive
*/
@CheckForNull
public List<Long> getIoServicedRecursive() {
return ioServicedRecursive;
}

/**
* @see #ioQueueRecursive
*/
@CheckForNull
public List<Long> getIoQueueRecursive() {
return ioQueueRecursive;
}

/**
* @see #ioServiceTimeRecursive
*/
@CheckForNull
public List<Long> getIoServiceTimeRecursive() {
return ioServiceTimeRecursive;
}

/**
* @see #ioWaitTimeRecursive
*/
@CheckForNull
public List<Long> getIoWaitTimeRecursive() {
return ioWaitTimeRecursive;
}

/**
* @see #ioMergedRecursive
*/
@CheckForNull
public List<Long> getIoMergedRecursive() {
return ioMergedRecursive;
}

/**
* @see #ioTimeRecursive
*/
@CheckForNull
public List<Long> getIoTimeRecursive() {
return ioTimeRecursive;
}

/**
* @see #sectorsRecursive
*/
@CheckForNull
public List<Long> getSectorsRecursive() {
return sectorsRecursive;
}
}
61 changes: 61 additions & 0 deletions src/main/java/com/github/dockerjava/api/model/CpuStatsConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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;

/**
* Used in {@link Statistics}
*
* @author Yuting Liu
*/
@JsonIgnoreProperties(ignoreUnknown = true)
class CpuStatsConfig implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("cpu_usage")
private CpuUsageConfig cpuUsage;

@JsonProperty("system_cpu_usage")
private Long systemCpuUsage;

@JsonProperty("online_cpus")
private Long onlineCpus;

@JsonProperty("throttling_data")
private ThrottlingDataConfig throttlingData;

/**
* @see #cpuUsage
*/
@CheckForNull
public CpuUsageConfig getCpuUsage() {
return cpuUsage;
}

/**
* @see #systemCpuUsage
*/
@CheckForNull
public Long getSystemCpuUsage() {
return systemCpuUsage;
}

/**
* @see #onlineCpus
*/
@CheckForNull
public Long getOnlineCpus() {
return onlineCpus;
}

/**
* @see #throttlingData
*/
@CheckForNull
public ThrottlingDataConfig getThrottlingData() {
return throttlingData;
}
}
62 changes: 62 additions & 0 deletions src/main/java/com/github/dockerjava/api/model/CpuUsageConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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)
class CpuUsageConfig implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("total_usage")
private Long totalUsage;

@JsonProperty("percpu_usage")
private List<Long> 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<Long> getPercpuUsage() {
return percpuUsage;
}

/**
* @see #usageInKernelmode
*/
@CheckForNull
public Long getUsageInKernelmode() {
return usageInKernelmode;
}

/**
* @see #usageInUsermode
*/
@CheckForNull
public Long getUsageInUsermode() {
return usageInUsermode;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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;

/**
* Used in {@link Statistics}
*
* @author Yuting Liu
*/
@JsonIgnoreProperties(ignoreUnknown = true)
class MemoryStatsConfig implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("usage")
private Long usage;

@JsonProperty("max_usage")
private Long maxUsage;

@JsonProperty("stats")
private StatsConfig stats;

@JsonProperty("limit")
private Long limit;

/**
* @see #usage
*/
@CheckForNull
public Long getUsage() {
return usage;
}

/**
* @see #maxUsage
*/
@CheckForNull
public Long getMaxUsage() {
return maxUsage;
}

/**
* @see #stats
*/
@CheckForNull
public StatsConfig getStats() {
return stats;
}

/**
* @see #limit
*/
@CheckForNull
public Long getLimit() {
return limit;
}
}
26 changes: 26 additions & 0 deletions src/main/java/com/github/dockerjava/api/model/PidsStatsConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;

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

/**
* Used in {@link Statistics}
*
* @author Yuting Liu
*/
class PidsStatsConfig implements Serializable {
private static final long serialVersionUID = 1L;

@JsonProperty("current")
private Long current;

/**
* @see #current
*/
@CheckForNull
public Long getCurrent() {
return current;
}
}
Loading