Search in sources :

Example 21 with PacketAnalyzerResult

use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.

the class EnergyEfficiencySimulationLTE method refresh.

@Override
public void refresh(AROTraceData model) {
    PacketAnalyzerResult analyzerResult = model.getAnalyzerResult();
    String[] valueString = new String[1];
    renderValue(analyzerResult, LabelKeys.rrc_continuousReceptionIdle, valueString);
    renderValue(analyzerResult, LabelKeys.energy_shortDRX, valueString);
    renderValue(analyzerResult, LabelKeys.energy_continuousReception, valueString);
    renderValue(analyzerResult, LabelKeys.energy_idle, valueString);
    renderValue(analyzerResult, LabelKeys.energy_promotionRatio, valueString);
    renderValue(analyzerResult, LabelKeys.energy_continuousReceptionEnergy, valueString);
    renderValue(analyzerResult, LabelKeys.energy_continuousReceptionTail, valueString);
    renderValue(analyzerResult, LabelKeys.energy_promotionRatioTime, valueString);
    renderValue(analyzerResult, LabelKeys.energy_shortDRXEnergy, valueString);
    renderValue(analyzerResult, LabelKeys.energy_rrcTotal, valueString);
    renderValue(analyzerResult, LabelKeys.energy_jpkb, valueString);
}
Also used : PacketAnalyzerResult(com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult)

Example 22 with PacketAnalyzerResult

use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.

the class SimultnsConnImpl method runTest.

@Override
public AbstractBestPracticeResult runTest(PacketAnalyzerResult traceData) {
    traceDataResult = traceData;
    SimultnsConnectionResult result = new SimultnsConnectionResult();
    simultnsConnectionEntryList = new ArrayList<MultipleConnectionsEntry>();
    simultnsConnectionEntryMap = new TreeMap<Double, MultipleConnectionsEntry>();
    populateSimultConnList();
    for (Map.Entry<Double, MultipleConnectionsEntry> simultnsConnEntryMap : simultnsConnectionEntryMap.entrySet()) {
        if (simultnsConnEntryMap.getValue() != null) {
            simultnsConnectionEntryList.add(simultnsConnEntryMap.getValue());
        }
    }
    result.setResults(simultnsConnectionEntryList);
    String text = "";
    if (simultnsConnectionEntryList.isEmpty()) {
        result.setResultType(BPResultType.PASS);
        text = textResultPass;
        result.setResultText(text);
        result.setResultExcelText(BPResultType.PASS.getDescription());
    } else {
        result.setResultType(BPResultType.FAIL);
        result.setResultText(textResults);
        // TODO: Validate the conditional statement
        result.setResultExcelText(MessageFormat.format(textExcelResults, BPResultType.FAIL.getDescription(), simultnsConnectionEntryList.parallelStream().mapToInt(x -> x.getConcurrentSessions()).sum(), (simultnsConnectionEntryList.size() > 1 ? "s" : "")));
    }
    result.setAboutText(aboutText);
    result.setDetailTitle(detailTitle);
    result.setLearnMoreUrl(learnMoreUrl);
    result.setOverviewTitle(overviewTitle);
    return result;
}
Also used : SimultnsConnectionResult(com.att.aro.core.bestpractice.pojo.SimultnsConnectionResult) BPResultType(com.att.aro.core.bestpractice.pojo.BPResultType) SimultnsConnectionResult(com.att.aro.core.bestpractice.pojo.SimultnsConnectionResult) Session(com.att.aro.core.packetanalysis.pojo.Session) HashMap(java.util.HashMap) SessionValues(com.att.aro.core.packetanalysis.pojo.SessionValues) MessageFormat(java.text.MessageFormat) ArrayList(java.util.ArrayList) Value(org.springframework.beans.factory.annotation.Value) AbstractBestPracticeResult(com.att.aro.core.bestpractice.pojo.AbstractBestPracticeResult) List(java.util.List) TreeMap(java.util.TreeMap) SimultnsUtil(com.att.aro.core.bestpractice.pojo.SimultnsUtil) IBestPractice(com.att.aro.core.bestpractice.IBestPractice) MultipleConnectionsEntry(com.att.aro.core.bestpractice.pojo.MultipleConnectionsEntry) Map(java.util.Map) PacketAnalyzerResult(com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult) Collections(java.util.Collections) SortedMap(java.util.SortedMap) MultipleConnectionsEntry(com.att.aro.core.bestpractice.pojo.MultipleConnectionsEntry) HashMap(java.util.HashMap) TreeMap(java.util.TreeMap) Map(java.util.Map) SortedMap(java.util.SortedMap)

Example 23 with PacketAnalyzerResult

use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.

the class ForwardSecrecyImplTest method setUp.

@Before
public void setUp() throws Exception {
    bestPractice = (ForwardSecrecyImpl) context.getBean("forwardSecrecy");
    packetAnalyzerResult = new PacketAnalyzerResult();
}
Also used : PacketAnalyzerResult(com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult) Before(org.junit.Before)

Example 24 with PacketAnalyzerResult

use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.

the class HttpsUsageImplTest method testNonSSLSessionHasPayload.

@Test
public void testNonSSLSessionHasPayload() {
    PacketAnalyzerResult pktAnalyzerResult = sessionPacketsPayloadTestSetup(1, 0, 1, 1);
    httpsUsageResult = (HttpsUsageResult) httpsUsageImpl.runTest(pktAnalyzerResult);
    httpsUsageEntries = httpsUsageResult.getResults();
    assertEquals(2, httpsUsageEntries.size());
}
Also used : PacketAnalyzerResult(com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Example 25 with PacketAnalyzerResult

use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.

the class HttpsUsageImplTest method testNonSSLSessionNoPayload.

@Test
public void testNonSSLSessionNoPayload() {
    PacketAnalyzerResult pktAnalyzerResult = sessionPacketsPayloadTestSetup(0, 0, 0, 0);
    httpsUsageResult = (HttpsUsageResult) httpsUsageImpl.runTest(pktAnalyzerResult);
    httpsUsageEntries = httpsUsageResult.getResults();
    assertEquals(0, httpsUsageEntries.size());
}
Also used : PacketAnalyzerResult(com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Aggregations

PacketAnalyzerResult (com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult)37 BaseTest (com.att.aro.core.BaseTest)11 ArrayList (java.util.ArrayList)11 Test (org.junit.Test)11 AbstractBestPracticeResult (com.att.aro.core.bestpractice.pojo.AbstractBestPracticeResult)10 PacketInfo (com.att.aro.core.packetanalysis.pojo.PacketInfo)7 Session (com.att.aro.core.packetanalysis.pojo.Session)7 TraceDirectoryResult (com.att.aro.core.packetanalysis.pojo.TraceDirectoryResult)7 AROTraceData (com.att.aro.core.pojo.AROTraceData)6 BestPracticeType (com.att.aro.core.bestpractice.pojo.BestPracticeType)5 BurstCollectionAnalysisData (com.att.aro.core.packetanalysis.pojo.BurstCollectionAnalysisData)5 Packet (com.att.aro.core.packetreader.pojo.Packet)5 MainFrame (com.att.aro.ui.view.MainFrame)5 List (java.util.List)5 Profile (com.att.aro.core.configuration.pojo.Profile)4 AnalysisFilter (com.att.aro.core.packetanalysis.pojo.AnalysisFilter)4 Statistic (com.att.aro.core.packetanalysis.pojo.Statistic)4 File (java.io.File)4 IBestPractice (com.att.aro.core.bestpractice.IBestPractice)3 BPResultType (com.att.aro.core.bestpractice.pojo.BPResultType)3