use of com.exalttech.trex.util.TrafficProfile in project trex-stateless-gui by cisco-system-traffic-generator.
the class RPCMethods method assignTrafficProfile.
/**
*
* @param portID
* @param profileList
* @return true in case of success
* @throws java.lang.Exception
*/
public StreamValidation assignTrafficProfile(int portID, Profile[] profileList) throws Exception {
String handler = (String) connectionHandler.get(portID);
stopTraffic(portID);
removeAllStreams(portID);
LogsController.getInstance().appendText(LogType.INFO, "Assigning Traffic Profile on Port " + portID);
TrafficProfile trexTrafficProfile = new TrafficProfile();
Profile[] updatedProfileList;
updatedProfileList = trexTrafficProfile.prepareTrafficProfile(profileList, portID, handler);
serverConnectionManager.sendAddStreamRequest(updatedProfileList);
return validateStream(portID);
}
use of com.exalttech.trex.util.TrafficProfile in project trex-stateless-gui by cisco-system-traffic-generator.
the class PacketBuilderHomeController method initialize.
@Override
public void initialize(URL url, ResourceBundle rb) {
trafficProfile = new TrafficProfile();
packetHex = new PacketHex(hexPane);
nextStreamBtn.setGraphic(new ImageView(new Image("/icons/next_stream.png")));
prevStreamBtn.setGraphic(new ImageView(new Image("/icons/prev_stream.png")));
packetInfo = new PacketInfo();
parser = new PacketParser();
}
Aggregations