Skip to content

Commit b01fc08

Browse files
committed
format codes with google style
Signed-off-by: Leo Ma <[email protected]>
1 parent 9cc426a commit b01fc08

File tree

4 files changed

+144
-140
lines changed

4 files changed

+144
-140
lines changed

src/main/java/com/cisco/trex/ClientBase.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,13 @@ public TRexClientResult<CaptureMonitor> startCapture(
442442
* @return CaptureMonitor
443443
*/
444444
public TRexClientResult<CaptureMonitor> startCapture(
445-
List<Integer> rxPorts, List<Integer> txPorts, String mode, int limit, String filter, String endpoint, int snaplen) {
445+
List<Integer> rxPorts,
446+
List<Integer> txPorts,
447+
String mode,
448+
int limit,
449+
String filter,
450+
String endpoint,
451+
int snaplen) {
446452
Map<String, Object> payload = new HashMap<>();
447453
payload.put(COMMAND, "start");
448454
payload.put("limit", limit);

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ public void startTraffic(
158158
* @param nc
159159
*/
160160
public void startTraffic(
161-
String profileId,
162-
long clientMask,
163-
double duration,
164-
boolean ipv6,
165-
int latencyPps,
166-
int mult,
167-
boolean nc) {
161+
String profileId,
162+
long clientMask,
163+
double duration,
164+
boolean ipv6,
165+
int latencyPps,
166+
int mult,
167+
boolean nc) {
168168
startTraffic(profileId, clientMask, duration, ipv6, latencyPps, mult, nc, 0);
169169
}
170170

@@ -578,7 +578,7 @@ private Map<String, Integer> translateNames2Ids(String profileId, List<String> t
578578
}
579579

580580
/**
581-
* Get flow information for a profile
581+
* Get flow information for a profile
582582
*
583583
* @param profileId
584584
* @return FlowInfo

src/main/java/com/cisco/trex/stateful/model/FlowInfoData.java

Lines changed: 105 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -5,150 +5,150 @@
55
/** counters for flow info */
66
public class FlowInfoData {
77

8-
@JsonProperty("duration")
9-
private double duration;
8+
@JsonProperty("duration")
9+
private double duration;
1010

11-
@JsonProperty("last_data_recv")
12-
private long lastDataRecv;
11+
@JsonProperty("last_data_recv")
12+
private long lastDataRecv;
1313

14-
@JsonProperty("options")
15-
private String options;
14+
@JsonProperty("options")
15+
private String options;
1616

17-
@JsonProperty("origin")
18-
private String origin;
17+
@JsonProperty("origin")
18+
private String origin;
1919

20-
@JsonProperty("rcv_mss")
21-
private long rcvMss;
20+
@JsonProperty("rcv_mss")
21+
private long rcvMss;
2222

23-
@JsonProperty("rcv_nxt")
24-
private long rcvNxt;
23+
@JsonProperty("rcv_nxt")
24+
private long rcvNxt;
2525

26-
@JsonProperty("rcv_ooopack")
27-
private long rcvOoopack;
26+
@JsonProperty("rcv_ooopack")
27+
private long rcvOoopack;
2828

29-
@JsonProperty("rcv_space")
30-
private long rcvSpace;
29+
@JsonProperty("rcv_space")
30+
private long rcvSpace;
3131

32-
@JsonProperty("rcv_wscale")
33-
private short rcvWscale;
32+
@JsonProperty("rcv_wscale")
33+
private short rcvWscale;
3434

35-
@JsonProperty("rto")
36-
private long rto;
35+
@JsonProperty("rto")
36+
private long rto;
3737

38-
@JsonProperty("rtt")
39-
private long rtt;
38+
@JsonProperty("rtt")
39+
private long rtt;
4040

41-
@JsonProperty("rttvar")
42-
private long rttvar;
41+
@JsonProperty("rttvar")
42+
private long rttvar;
4343

44-
@JsonProperty("snd_cwnd")
45-
private long sndCwnd;
44+
@JsonProperty("snd_cwnd")
45+
private long sndCwnd;
4646

47-
@JsonProperty("snd_mss")
48-
private long sndMss;
47+
@JsonProperty("snd_mss")
48+
private long sndMss;
4949

50-
@JsonProperty("snd_nxt")
51-
private long sndNxt;
50+
@JsonProperty("snd_nxt")
51+
private long sndNxt;
5252

53-
@JsonProperty("snd_rexmitpack")
54-
private long sndRexmitpack;
53+
@JsonProperty("snd_rexmitpack")
54+
private long sndRexmitpack;
5555

56-
@JsonProperty("snd_ssthresh")
57-
private long sndSsthresh;
56+
@JsonProperty("snd_ssthresh")
57+
private long sndSsthresh;
5858

59-
@JsonProperty("snd_wnd")
60-
private long sndWnd;
59+
@JsonProperty("snd_wnd")
60+
private long sndWnd;
6161

62-
@JsonProperty("snd_wscale")
63-
private short sndWscale;
62+
@JsonProperty("snd_wscale")
63+
private short sndWscale;
6464

65-
@JsonProperty("snd_zerowin")
66-
private long sndZerowin;
65+
@JsonProperty("snd_zerowin")
66+
private long sndZerowin;
6767

68-
@JsonProperty("state")
69-
private long state;
68+
@JsonProperty("state")
69+
private long state;
7070

71-
public double getDuration() {
72-
return duration;
73-
}
71+
public double getDuration() {
72+
return duration;
73+
}
7474

75-
public long getLastDataRecv() {
76-
return lastDataRecv;
77-
}
75+
public long getLastDataRecv() {
76+
return lastDataRecv;
77+
}
7878

79-
public String getOptions() {
80-
return options;
81-
}
79+
public String getOptions() {
80+
return options;
81+
}
8282

83-
public String getOrigin() {
84-
return origin;
85-
}
83+
public String getOrigin() {
84+
return origin;
85+
}
8686

87-
public long getRcvMss() {
88-
return rcvMss;
89-
}
87+
public long getRcvMss() {
88+
return rcvMss;
89+
}
9090

91-
public long getRcvNxt() {
92-
return rcvNxt;
93-
}
91+
public long getRcvNxt() {
92+
return rcvNxt;
93+
}
9494

95-
public long getRcvOoopack() {
96-
return rcvOoopack;
97-
}
95+
public long getRcvOoopack() {
96+
return rcvOoopack;
97+
}
9898

99-
public long getRcvSpace() {
100-
return rcvSpace;
101-
}
99+
public long getRcvSpace() {
100+
return rcvSpace;
101+
}
102102

103-
public short getRcvWscale() {
104-
return rcvWscale;
105-
}
103+
public short getRcvWscale() {
104+
return rcvWscale;
105+
}
106106

107-
public long getRto() {
108-
return rto;
109-
}
107+
public long getRto() {
108+
return rto;
109+
}
110110

111-
public long getRtt() {
112-
return rtt;
113-
}
111+
public long getRtt() {
112+
return rtt;
113+
}
114114

115-
public long getRttvar() {
116-
return rttvar;
117-
}
115+
public long getRttvar() {
116+
return rttvar;
117+
}
118118

119-
public long getSndCwnd() {
120-
return sndCwnd;
121-
}
119+
public long getSndCwnd() {
120+
return sndCwnd;
121+
}
122122

123-
public long getSndMss() {
124-
return sndMss;
125-
}
123+
public long getSndMss() {
124+
return sndMss;
125+
}
126126

127-
public long getSndNxt() {
128-
return sndNxt;
129-
}
127+
public long getSndNxt() {
128+
return sndNxt;
129+
}
130130

131-
public long getSndRexmitpack() {
132-
return sndRexmitpack;
133-
}
131+
public long getSndRexmitpack() {
132+
return sndRexmitpack;
133+
}
134134

135-
public long getSndSsthresh() {
136-
return sndSsthresh;
137-
}
135+
public long getSndSsthresh() {
136+
return sndSsthresh;
137+
}
138138

139-
public long getSndWnd() {
140-
return sndWnd;
141-
}
139+
public long getSndWnd() {
140+
return sndWnd;
141+
}
142142

143-
public short getSndWscale() {
144-
return sndWscale;
145-
}
143+
public short getSndWscale() {
144+
return sndWscale;
145+
}
146146

147-
public long getSndZerowin() {
148-
return sndZerowin;
149-
}
147+
public long getSndZerowin() {
148+
return sndZerowin;
149+
}
150150

151-
public long getState() {
152-
return state;
153-
}
151+
public long getState() {
152+
return state;
153+
}
154154
}

src/main/java/com/cisco/trex/stateful/model/FlowInfoResult.java

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,31 @@
66
/** Data returned from get_flow_info API */
77
public class FlowInfoResult {
88

9-
private BigInteger index;
10-
private Map<String, FlowInfoData> flowInfoDataMap;
9+
private BigInteger index;
10+
private Map<String, FlowInfoData> flowInfoDataMap;
1111

12-
public FlowInfoResult(BigInteger index,
13-
Map<String, FlowInfoData> flowInfoDataMap) {
14-
this.index = index;
15-
this.flowInfoDataMap = flowInfoDataMap;
16-
}
12+
public FlowInfoResult(BigInteger index, Map<String, FlowInfoData> flowInfoDataMap) {
13+
this.index = index;
14+
this.flowInfoDataMap = flowInfoDataMap;
15+
}
1716

18-
/**
19-
* Get base index in memory
20-
*
21-
* @return
22-
*/
23-
public BigInteger getIndex() {
24-
return index;
25-
}
17+
/**
18+
* Get base index in memory
19+
*
20+
* @return
21+
*/
22+
public BigInteger getIndex() {
23+
return index;
24+
}
2625

27-
/**
28-
* Get flow info data map, as format of <string to present traffic direction , a flowInfoData object containsing flow info counters>
29-
* ex.,
30-
* key is "1.1.1.1:41668-1.1.2.1:20"
31-
* value is flowInfoData object refer to {@link FlowInfoData}
32-
*
33-
* @return
34-
*/
35-
public Map<String, FlowInfoData> getFlowInfoDataMap() {
36-
return flowInfoDataMap;
37-
}
26+
/**
27+
* Get flow info data map, as format of <string to present traffic direction , a flowInfoData
28+
* object containsing flow info counters> ex., key is "1.1.1.1:41668-1.1.2.1:20" value is
29+
* flowInfoData object refer to {@link FlowInfoData}
30+
*
31+
* @return
32+
*/
33+
public Map<String, FlowInfoData> getFlowInfoDataMap() {
34+
return flowInfoDataMap;
35+
}
3836
}

0 commit comments

Comments
 (0)