Skip to content

Commit 9889d06

Browse files
committed
format changed files by google formatter
Signed-off-by: Leo Ma <[email protected]>
1 parent e7b0d50 commit 9889d06

File tree

2 files changed

+62
-63
lines changed

2 files changed

+62
-63
lines changed

src/main/java/com/cisco/trex/stateful/TRexAstfClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,14 @@ public Map<String, AstfStatistics> getTemplateGroupStatistics(
458458

459459
return stats;
460460
}
461-
461+
462462
/**
463463
* get template group statistics
464464
*
465465
* @return Map key:tgName, value:AstfStatistics
466466
*/
467467
public ServerStatus syncWithServer() {
468-
Map<String, Object> payload = createPayload("*");
468+
Map<String, Object> payload = createPayload("*");
469469
return callMethod("sync", payload, ServerStatus.class).get();
470470
}
471471

Lines changed: 60 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,66 @@
11
package com.cisco.trex.stateful.model;
22

3-
import java.util.Map;
4-
53
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import java.util.Map;
65

76
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+
}
6766
}

0 commit comments

Comments
 (0)