| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5c03371 commit b8da883
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,18 +15,29 @@ | |||
| 15 | 15 | public class MemoryStatsConfig implements Serializable { | |
| 16 | 16 | private static final long serialVersionUID = 1L; | |
| 17 | 17 | ||
| 18 | + @JsonProperty("stats") | ||
| 19 | + private StatsConfig stats; | ||
| 20 | + | ||
| 18 | 21 | @JsonProperty("usage") | |
| 19 | 22 | private Long usage; | |
| 20 | 23 | ||
| 21 | 24 | @JsonProperty("max_usage") | |
| 22 | 25 | private Long maxUsage; | |
| 23 | 26 | ||
| 24 | - @JsonProperty("stats") | ||
| 25 | - private StatsConfig stats; | ||
| 27 | + @JsonProperty("failcnt") | ||
| 28 | + private Long failcnt; | ||
| 26 | 29 | ||
| 27 | 30 | @JsonProperty("limit") | |
| 28 | 31 | private Long limit; | |
| 29 | 32 | ||
| 33 | + /** | ||
| 34 | + * @see #stats | ||
| 35 | + */ | ||
| 36 | + @CheckForNull | ||
| 37 | + public StatsConfig getStats() { | ||
| 38 | + return stats; | ||
| 39 | + } | ||
| 40 | + | ||
| 30 | 41 | /** | |
| 31 | 42 | * @see #usage | |
| 32 | 43 | */ | |
@@ -44,11 +55,10 @@ public Long getMaxUsage() { | |||
| 44 | 55 | } | |
| 45 | 56 | ||
| 46 | 57 | /** | |
| 47 | - * @see #stats | ||
| 58 | + * @see #failcnt | ||
| 48 | 59 | */ | |
| 49 | - @CheckForNull | ||
| 50 | - public StatsConfig getStats() { | ||
| 51 | - return stats; | ||
| 60 | + public Long getFailcnt() { | ||
| 61 | + return failcnt; | ||
| 52 | 62 | } | |
| 53 | 63 | ||
| 54 | 64 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,6 +82,7 @@ public void serderJson1() throws IOException { | |||
| 82 | 82 | assertThat(stats.getWriteback(), is(0L)); | |
| 83 | 83 | ||
| 84 | 84 | assertThat(memoryStats.getLimit(), is(2095874048L)); | |
| 85 | + assertThat(memoryStats.getFailcnt(), is(0L)); | ||
| 85 | 86 | ||
| 86 | 87 | final BlkioStatsConfig blkioStats = statistics.getBlkioStats(); | |
| 87 | 88 | assertThat(blkioStats.getIoServiceBytesRecursive().size(), is(2)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,7 +171,8 @@ | |||
| 171 | 171 | "unevictable":0, | |
| 172 | 172 | "writeback":0 | |
| 173 | 173 | }, | |
| 174 | - "limit":2095874048 | ||
| 174 | + "limit":2095874048, | ||
| 175 | + "failcnt":0 | ||
| 175 | 176 | }, | |
| 176 | 177 | "name":"/gallant_hamilton", | |
| 177 | 178 | "id":"b581d78b03e41d81c9fe941f03f5d35e23733ff96370456b58d2906e002b0deb", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments