Search in sources :

Example 1 with PacketAnalyzerImpl

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;
}
Also used : PacketAnalyzerImpl(com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl) PacketInfo(com.att.aro.core.packetanalysis.pojo.PacketInfo) MainFrame(com.att.aro.ui.view.MainFrame)

Example 2 with PacketAnalyzerImpl

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;
}
Also used : PacketAnalyzerImpl(com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl) AnalysisFilter(com.att.aro.core.packetanalysis.pojo.AnalysisFilter) ApplicationSelection(com.att.aro.core.packetanalysis.pojo.ApplicationSelection) ArrayList(java.util.ArrayList) PacketInfo(com.att.aro.core.packetanalysis.pojo.PacketInfo) IPAddressSelection(com.att.aro.core.packetanalysis.pojo.IPAddressSelection)

Example 3 with PacketAnalyzerImpl

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;
}
Also used : PacketAnalyzerImpl(com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl) PacketInfo(com.att.aro.core.packetanalysis.pojo.PacketInfo)

Aggregations

PacketAnalyzerImpl (com.att.aro.core.packetanalysis.impl.PacketAnalyzerImpl)3 PacketInfo (com.att.aro.core.packetanalysis.pojo.PacketInfo)3 AnalysisFilter (com.att.aro.core.packetanalysis.pojo.AnalysisFilter)1 ApplicationSelection (com.att.aro.core.packetanalysis.pojo.ApplicationSelection)1 IPAddressSelection (com.att.aro.core.packetanalysis.pojo.IPAddressSelection)1 MainFrame (com.att.aro.ui.view.MainFrame)1 ArrayList (java.util.ArrayList)1