|
1 | 1 | package com.cisco.trex.stateful.model; |
2 | 2 |
|
3 | | -import java.util.Map; |
4 | | - |
5 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | +import java.util.Map; |
6 | 5 |
|
7 | 6 | public class ServerStatus { |
8 | | - |
9 | | - public enum State { |
10 | | - @JsonProperty("0") |
11 | | - IDLE, |
12 | | - |
13 | | - @JsonProperty("1") |
14 | | - LOADED, |
15 | | - |
16 | | - @JsonProperty("2") |
17 | | - PARSING, |
18 | | - |
19 | | - @JsonProperty("3") |
20 | | - BUILDING, |
21 | | - |
22 | | - @JsonProperty("4") |
23 | | - TRANSMITTING, |
24 | | - |
25 | | - @JsonProperty("5") |
26 | | - CLEANUP; |
27 | | - } |
28 | | - |
29 | | - @JsonProperty("epoch") |
30 | | - private int epoch; |
31 | | - |
32 | | - @JsonProperty("state") |
33 | | - private int state; |
34 | | - |
35 | | - @JsonProperty("state_profile") |
36 | | - private Map<String, State> stateProfile; |
37 | | - |
38 | | - @JsonProperty("epoch") |
39 | | - public int getEpoch() { |
40 | | - return epoch; |
41 | | - } |
42 | | - |
43 | | - @JsonProperty("epoch") |
44 | | - public void setEpoch(int epoch) { |
45 | | - this.epoch = epoch; |
46 | | - } |
47 | | - |
48 | | - @JsonProperty("state") |
49 | | - public int getState() { |
50 | | - return state; |
51 | | - } |
52 | | - |
53 | | - @JsonProperty("state") |
54 | | - public void setState(int state) { |
55 | | - this.state = state; |
56 | | - } |
57 | | - |
58 | | - @JsonProperty("state_profile") |
59 | | - public Map<String, State> getStateProfile() { |
60 | | - return stateProfile; |
61 | | - } |
62 | | - |
63 | | - @JsonProperty("state_profile") |
64 | | - public void setStateProfile(Map<String, State> stateProfile) { |
65 | | - this.stateProfile = stateProfile; |
66 | | - } |
| 7 | + |
| 8 | + public enum State { |
| 9 | + @JsonProperty("0") |
| 10 | + IDLE, |
| 11 | + |
| 12 | + @JsonProperty("1") |
| 13 | + LOADED, |
| 14 | + |
| 15 | + @JsonProperty("2") |
| 16 | + PARSING, |
| 17 | + |
| 18 | + @JsonProperty("3") |
| 19 | + BUILDING, |
| 20 | + |
| 21 | + @JsonProperty("4") |
| 22 | + TRANSMITTING, |
| 23 | + |
| 24 | + @JsonProperty("5") |
| 25 | + CLEANUP; |
| 26 | + } |
| 27 | + |
| 28 | + @JsonProperty("epoch") |
| 29 | + private int epoch; |
| 30 | + |
| 31 | + @JsonProperty("state") |
| 32 | + private int state; |
| 33 | + |
| 34 | + @JsonProperty("state_profile") |
| 35 | + private Map<String, State> stateProfile; |
| 36 | + |
| 37 | + @JsonProperty("epoch") |
| 38 | + public int getEpoch() { |
| 39 | + return epoch; |
| 40 | + } |
| 41 | + |
| 42 | + @JsonProperty("epoch") |
| 43 | + public void setEpoch(int epoch) { |
| 44 | + this.epoch = epoch; |
| 45 | + } |
| 46 | + |
| 47 | + @JsonProperty("state") |
| 48 | + public int getState() { |
| 49 | + return state; |
| 50 | + } |
| 51 | + |
| 52 | + @JsonProperty("state") |
| 53 | + public void setState(int state) { |
| 54 | + this.state = state; |
| 55 | + } |
| 56 | + |
| 57 | + @JsonProperty("state_profile") |
| 58 | + public Map<String, State> getStateProfile() { |
| 59 | + return stateProfile; |
| 60 | + } |
| 61 | + |
| 62 | + @JsonProperty("state_profile") |
| 63 | + public void setStateProfile(Map<String, State> stateProfile) { |
| 64 | + this.stateProfile = stateProfile; |
| 65 | + } |
67 | 66 | } |
0 commit comments