Package org.opennms.util.ilr
Class Collector
- java.lang.Object
-
- org.opennms.util.ilr.Collector
-
public class Collector extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Collector.SortColumn
static class
Collector.SortOrder
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_DATA_FORMAT
static String
SERVICE_TITLE_FORMAT
-
Constructor Summary
Constructors Constructor Description Collector()
-
Method Summary
-
-
-
Field Detail
-
SERVICE_TITLE_FORMAT
public static final String SERVICE_TITLE_FORMAT
- See Also:
- Constant Field Values
-
SERVICE_DATA_FORMAT
public static final String SERVICE_DATA_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSearchString
public void setSearchString(String searchString)
-
setSortColumn
public void setSortColumn(Collector.SortColumn sortFlag)
-
setSortOrder
public void setSortOrder(Collector.SortOrder sortOrder)
-
getSortColumn
public Collector.SortColumn getSortColumn()
-
getSearchString
public String getSearchString()
-
setDurationsMs
public static void setDurationsMs(boolean durationsMs)
-
getDurationsMs
public static boolean getDurationsMs()
-
addLog
public void addLog(String logMessage)
-
getStartTime
public Date getStartTime()
-
getFirstValidLogMessage
public LogMessage getFirstValidLogMessage()
-
getLastValidLogMessage
public LogMessage getLastValidLogMessage()
-
getEndTime
public Date getEndTime()
-
getDuration
public long getDuration()
-
getFormattedDuration
public String getFormattedDuration()
-
getServiceCount
public int getServiceCount()
-
getm_ServiceCollectors
public Map<String,ServiceCollector> getm_ServiceCollectors()
-
compareLongs
public int compareLongs(long l1, long l2)
-
getServiceCollectors
public List<ServiceCollector> getServiceCollectors()
-
getColumnComparator
public Comparator<ServiceCollector> getColumnComparator()
-
getThreadCount
public int getThreadCount()
-
getCollectionsPerService
public int getCollectionsPerService(String serviceID)
-
getAverageCollectionTimePerService
public long getAverageCollectionTimePerService(String serviceID)
-
getTotalCollectionTimePerService
public long getTotalCollectionTimePerService(String serviceID)
-
readLogMessagesFromFile
public void readLogMessagesFromFile(String fileName) throws IOException
- Throws:
IOException
-
printGlobalStats
public void printGlobalStats(PrintWriter out)
-
formatDuration
public static String formatDuration(long millis)
-
printServiceHeader
public void printServiceHeader(PrintWriter out)
-
printReport
public void printReport(PrintWriter out)
-
printServiceStats
public void printServiceStats(String serviceID, PrintWriter out)
-
-