Skip to content

Commit c803246

Browse files
committed
rename getProfileInfo() method to getFlowInfo() and add new parameter "duration" for it.
Signed-off-by: Leo Ma <[email protected]>
1 parent b01fc08 commit c803246

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,14 @@ private Map<String, Integer> translateNames2Ids(String profileId, List<String> t
581581
* Get flow information for a profile
582582
*
583583
* @param profileId
584+
* @param startIndex starting index to get flow info
584585
* @return FlowInfo
585586
*/
586-
public List<FlowInfoResult> getProfileInfo(String profileId) {
587+
public List<FlowInfoResult> getFlowInfo(String profileId, BigInteger startIndex) {
587588
List<FlowInfoResult> results = new ArrayList<>();
588589

589590
Map<String, Object> payload = createPayload(profileId);
591+
payload.put("index", startIndex);
590592
String json = callMethod("get_flow_info", payload);
591593
JsonArray jsonArray = getResultFromResponse(json).getAsJsonArray();
592594
Iterator<JsonElement> iterator = jsonArray.iterator();
@@ -610,4 +612,14 @@ public List<FlowInfoResult> getProfileInfo(String profileId) {
610612

611613
return results;
612614
}
615+
616+
/**
617+
* Get flow information for a profile
618+
*
619+
* @param profileId
620+
* @return FlowInfo
621+
*/
622+
public List<FlowInfoResult> getFlowInfo(String profileId) {
623+
return getFlowInfo(profileId, BigInteger.valueOf(0));
624+
}
613625
}

0 commit comments

Comments
 (0)