Skip to content

Commit 54bd243

Browse files
yuting-liuKostyaSha
authored andcommitted
Make the class of Statistics config public (docker-java#975)
* change pom.xml * Make the class of Statistics config public * Fix the unit test
1 parent 3252874 commit 54bd243

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

src/main/java/com/github/dockerjava/api/model/BlkioStatsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @author Yuting Liu
1414
*/
1515
@JsonIgnoreProperties(ignoreUnknown = true)
16-
class BlkioStatsConfig implements Serializable {
16+
public class BlkioStatsConfig implements Serializable {
1717
private static final long serialVersionUID = 1L;
1818

1919
@JsonProperty("io_service_bytes_recursive")

src/main/java/com/github/dockerjava/api/model/CpuStatsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @author Yuting Liu
1313
*/
1414
@JsonIgnoreProperties(ignoreUnknown = true)
15-
class CpuStatsConfig implements Serializable {
15+
public class CpuStatsConfig implements Serializable {
1616
private static final long serialVersionUID = 1L;
1717

1818
@JsonProperty("cpu_usage")

src/main/java/com/github/dockerjava/api/model/CpuUsageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @author Yuting Liu
1414
*/
1515
@JsonIgnoreProperties(ignoreUnknown = true)
16-
class CpuUsageConfig implements Serializable {
16+
public class CpuUsageConfig implements Serializable {
1717
private static final long serialVersionUID = 1L;
1818

1919
@JsonProperty("total_usage")

src/main/java/com/github/dockerjava/api/model/MemoryStatsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @author Yuting Liu
1313
*/
1414
@JsonIgnoreProperties(ignoreUnknown = true)
15-
class MemoryStatsConfig implements Serializable {
15+
public class MemoryStatsConfig implements Serializable {
1616
private static final long serialVersionUID = 1L;
1717

1818
@JsonProperty("usage")

src/main/java/com/github/dockerjava/api/model/PidsStatsConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @author Yuting Liu
1212
*/
13-
class PidsStatsConfig implements Serializable {
13+
public class PidsStatsConfig implements Serializable {
1414
private static final long serialVersionUID = 1L;
1515

1616
@JsonProperty("current")

src/main/java/com/github/dockerjava/api/model/StatisticNetworksConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @author Yuting Liu
1616
*/
1717
@JsonIgnoreProperties(ignoreUnknown = true)
18-
class StatisticNetWorksConfig implements Serializable {
18+
public class StatisticNetworksConfig implements Serializable {
1919
private static final long serialVersionUID = 1L;
2020

2121
@JsonProperty("rx_bytes")

src/main/java/com/github/dockerjava/api/model/Statistics.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public class Statistics implements Serializable {
2828
*/
2929
@CheckForNull
3030
@JsonProperty("networks")
31-
private Map<String, StatisticNetWorksConfig> networks;
31+
private Map<String, StatisticNetworksConfig> networks;
3232

3333
/**
3434
* @deprecated as of Docker Remote API 1.21, replaced by {@link #networks}
3535
*/
3636
@Deprecated
3737
@JsonProperty("network")
38-
private Map<String, StatisticNetWorksConfig> network;
38+
private Map<String, StatisticNetworksConfig> network;
3939

4040
@JsonProperty("memory_stats")
4141
private MemoryStatsConfig memoryStats;
@@ -66,15 +66,15 @@ public String getRead() {
6666
* @since Docker Remote API 1.21
6767
*/
6868
@CheckForNull
69-
public Map<String, StatisticNetWorksConfig> getNetworks() {
69+
public Map<String, StatisticNetworksConfig> getNetworks() {
7070
return networks;
7171
}
7272

7373
/**
7474
* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworks()}
7575
*/
7676
@Deprecated
77-
public Map<String, StatisticNetWorksConfig> getNetwork() {
77+
public Map<String, StatisticNetworksConfig> getNetwork() {
7878
return network;
7979
}
8080

src/main/java/com/github/dockerjava/api/model/ThrottlingDataConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @author Yuting Liu
1313
*/
1414
@JsonIgnoreProperties(ignoreUnknown = true)
15-
class ThrottlingDataConfig implements Serializable {
15+
public class ThrottlingDataConfig implements Serializable {
1616
private static final long serialVersionUID = 1L;
1717

1818
@JsonProperty("periods")

src/test/java/com/github/dockerjava/api/model/StatisticsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void serderJson1() throws IOException {
3131

3232
assertThat(statistics.getRead(), equalTo("2017-12-06T00:42:03.8352972Z"));
3333

34-
final StatisticNetWorksConfig network = statistics.getNetworks().get("eth0");
34+
final StatisticNetworksConfig network = statistics.getNetworks().get("eth0");
3535
assertThat(network.getRxBytes(), is(1230L));
3636
assertThat(network.getRxPackets(), is(19L));
3737
assertThat(network.getRxErrors(), is(0L));

0 commit comments

Comments
 (0)