org.opennms.util.ilr
Class Collector
java.lang.Object
org.opennms.util.ilr.Collector
public class Collector
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Collector
public Collector()
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()
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)
getServices
public Set<String> getServices()
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)
Copyright © 2011. All Rights Reserved.