@Test public void testParseTotalPersistTime() { setup("TestLogFile.log","-tpt"); assertEquals("TOTALPERSISTTIME", main.getCollector().m_sortColumn.toString()); }
public Collector getCollector(){ return c; }
Main { public Collector getCollector(){ return c; } }
Main { public Collector getCollector(){ return c; }  }
Main { public Collector getCollector(){ return c; }  static void main(String[] args); void execute(String[] args, OutputStream out); @Option (shortName ="tpt", longName = "totalPersistTime", help = "Sorts by total persist time") void sortByTotalPersistTime(); @Option (shortName ="apt", longName = "averagePersistTime", help = "Sorts by average persist time") void sortByAveragePersistTime(); @Option (shortName ="tct", longName = "totalCollectionTime", help = "Sorts by total collection time") void sortByTotalCollectiontime(); @Option (shortName ="up", longName = "unsuccesfulPercentage", help = "Sorts by unsuccessful percentage") void sortByUnsuccessfulPercentage(); @Option (shortName ="auct", longName = "averageUnsuccessfulCollectionTime", help = "Sorts by average unsuccessful collection time") void sortByAverageUnsuccessfulCollectionTime(); @Option (shortName ="sp", longName = "successfulPercentage", help = "Sorts by successful percentage") void sortBySuccessfulPercentage(); @Option (shortName ="asct", longName = "averageSuccessfulCollectionTime", help = "Sorts by average successful collection time") void sortByAverageSuccessfulCollectionTime(); @Option (shortName ="atbc", longName = "averageTimeBetweenCollections", help = "Sorts by average time between collections") void sortByAverageTimeBetweenCollections(); @Option (shortName ="act", longName = "averageCollectionTime", help = "Sorts by average collection time") void sortByAverageCollectionTime(); @Option (shortName ="tc", longName = "totalCollections", help = "Sorts by total collections") void sortByTotalCollections(); @Option (shortName ="ms", longName = "msDurations", help = "Outputs all durations in milliseconds") void setDurationsMs(); Collector getCollector(); @Arguments(help = "One or more instrumentation log files (with debug logging enabled)") void processLogFile(String fileName); void parseHelpOption(String [] args, int i); }
Main { public Collector getCollector(){ return c; }  static void main(String[] args); void execute(String[] args, OutputStream out); @Option (shortName ="tpt", longName = "totalPersistTime", help = "Sorts by total persist time") void sortByTotalPersistTime(); @Option (shortName ="apt", longName = "averagePersistTime", help = "Sorts by average persist time") void sortByAveragePersistTime(); @Option (shortName ="tct", longName = "totalCollectionTime", help = "Sorts by total collection time") void sortByTotalCollectiontime(); @Option (shortName ="up", longName = "unsuccesfulPercentage", help = "Sorts by unsuccessful percentage") void sortByUnsuccessfulPercentage(); @Option (shortName ="auct", longName = "averageUnsuccessfulCollectionTime", help = "Sorts by average unsuccessful collection time") void sortByAverageUnsuccessfulCollectionTime(); @Option (shortName ="sp", longName = "successfulPercentage", help = "Sorts by successful percentage") void sortBySuccessfulPercentage(); @Option (shortName ="asct", longName = "averageSuccessfulCollectionTime", help = "Sorts by average successful collection time") void sortByAverageSuccessfulCollectionTime(); @Option (shortName ="atbc", longName = "averageTimeBetweenCollections", help = "Sorts by average time between collections") void sortByAverageTimeBetweenCollections(); @Option (shortName ="act", longName = "averageCollectionTime", help = "Sorts by average collection time") void sortByAverageCollectionTime(); @Option (shortName ="tc", longName = "totalCollections", help = "Sorts by total collections") void sortByTotalCollections(); @Option (shortName ="ms", longName = "msDurations", help = "Outputs all durations in milliseconds") void setDurationsMs(); Collector getCollector(); @Arguments(help = "One or more instrumentation log files (with debug logging enabled)") void processLogFile(String fileName); void parseHelpOption(String [] args, int i);  }