use of com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl in project VideoOptimzer by attdevsupport.
the class ExcludeTimeRangeAnalysisDialog method hasDataAfterFiltering.
private boolean hasDataAfterFiltering(AnalysisFilter filter) {
List<PacketInfo> packetsInfoBeforeFilter = ((MainFrame) parent).getController().getTheModel().getAnalyzerResult().getTraceresult().getAllpackets();
PacketAnalyzerImpl packetAnalyzerImpl = (PacketAnalyzerImpl) ((MainFrame) parent).getController().getAROService().getAnalyzer();
List<PacketInfo> packetsInfoAfterFilter = packetAnalyzerImpl.filterPackets(filter, packetsInfoBeforeFilter);
return packetsInfoAfterFilter.size() > 0;
}
use of com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl in project VideoOptimzer by attdevsupport.
the class FilterApplicationsAndIpDialog method selectionReturnsData.
/*
* Compares user selection to trace data to determine
* if all the trace data will be filtered out if user
* selection is applied.
*/
private boolean selectionReturnsData() {
AnalysisFilter filter = getCurrentPktAnalyzerResult().getFilter();
if (!filter.isIpv4Sel() && !filter.isIpv6Sel() && !filter.isTcpSel() && !filter.isUdpSel() && !filter.isDnsSelection()) {
return false;
}
Collection<ApplicationSelection> appSel = filter.getApplicationSelections();
List<IPAddressSelection> ipSel = new ArrayList<IPAddressSelection>();
List<IPAddressSelection> ipSelChecked = new ArrayList<IPAddressSelection>();
for (ApplicationSelection aSel : appSel) {
ipSel.addAll(aSel.getIPAddressSelections());
}
for (IPAddressSelection iSel : ipSel) {
if (iSel.isSelected()) {
ipSelChecked.add(iSel);
}
}
if (ipSelChecked.size() == 0) {
return false;
}
List<PacketInfo> packetsInfo = getInitialPktAnalyzerResult().getTraceresult().getAllpackets();
PacketAnalyzerImpl pktAnalyzer = (PacketAnalyzerImpl) ((MainFrame) parent).getController().getAROService().getAnalyzer();
if (pktAnalyzer.filterPackets(filter, packetsInfo).size() > 0) {
return true;
}
return false;
}
use of com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl in project VideoOptimzer by attdevsupport.
the class TimeRangeAnalysisDialog method hasDataAfterFiltering.
private boolean hasDataAfterFiltering(AnalysisFilter filter) {
List<PacketInfo> packetsInfoBeforeFilter = currentTraceResult.getTraceresult().getAllpackets();
PacketAnalyzerImpl packetAnalyzerImpl = (PacketAnalyzerImpl) ((MainFrame) parent).getController().getAROService().getAnalyzer();
List<PacketInfo> packetsInfoAfterFilter = packetAnalyzerImpl.filterPackets(filter, packetsInfoBeforeFilter);
return packetsInfoAfterFilter.size() > 0;
}
Aggregations