pt.digitalis.iss
Class PerformanceLogger

java.lang.Object
  extended by 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
 

Constructor Detail

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
Method Detail

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 value
currentAsynchronousThreshold - the current asynchronicity threshold value
minAsynchronousThreshold - the minimum asynchronicity threshold value defined
maxAsynchronousThreshold - the maximum asynchronicity threshold value defined
numberOfSynchronousServiceRequests - the number of requests being served synchronously
numberOfAsynchronousWorkers - the number of workers handling asynchronous requests
queueSize - the number of processes waiting on the queue
meanExecutionTime - the current expected time for a request to be served
minExecutionTime - the minimum defined service time
maxExecutionTime - the maximum defined service time


Copyright © 2010 Digitalis Informática Lda. All Rights Reserved.