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()
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()
getServices
public Set<String> getServices()
getServiceCollectors
public Collection<ServiceCollector> getServiceCollectors()
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.