pt.digitalis.iss
Class PerformanceLogger
java.lang.Object
pt.digitalis.iss.PerformanceLogger
public final class PerformanceLogger
- extends Object
This entity logs the performance information of the ISS.
It collects the performance data from the ISS and sends the data to a
LogWrapper.
- Author:
- Rodrigo Gonçalves rgoncalves@digitalis.pt
Constructor Summary |
PerformanceLogger(pt.digitalis.log.ILogWrapper logger)
Constructor. |
Method Summary |
void |
logPerformanceInformation(int previousAsynchronousThreshold,
int currentAsynchronousThreshold,
int minAsynchronousThreshold,
int maxAsynchronousThreshold,
int numberOfSynchronousServiceRequests,
int numberOfAsynchronousWorkers,
int queueSize,
long meanExecutionTime,
long minExecutionTime,
long maxExecutionTime)
Logs the passed performance information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerformanceLogger
public PerformanceLogger(pt.digitalis.log.ILogWrapper logger)
- Constructor. Sets the the log level as info and configures the time zone.
- Parameters:
logger
- the logger instance
logPerformanceInformation
public void logPerformanceInformation(int previousAsynchronousThreshold,
int currentAsynchronousThreshold,
int minAsynchronousThreshold,
int maxAsynchronousThreshold,
int numberOfSynchronousServiceRequests,
int numberOfAsynchronousWorkers,
int queueSize,
long meanExecutionTime,
long minExecutionTime,
long maxExecutionTime)
- Logs the passed performance information.
Gets the current timestamp from the OS, composes a message with the
passed performance information and sends the message to the logger.
- Parameters:
previousAsynchronousThreshold
- the previous asynchronicity threshold valuecurrentAsynchronousThreshold
- the current asynchronicity threshold valueminAsynchronousThreshold
- the minimum asynchronicity threshold value definedmaxAsynchronousThreshold
- the maximum asynchronicity threshold value definednumberOfSynchronousServiceRequests
- the number of requests being served synchronouslynumberOfAsynchronousWorkers
- the number of workers handling asynchronous requestsqueueSize
- the number of processes waiting on the queuemeanExecutionTime
- the current expected time for a request to be servedminExecutionTime
- the minimum defined service timemaxExecutionTime
- the maximum defined service time
Copyright © 2010 Digitalis Informática Lda. All Rights Reserved.