m.c.m.proxyma.plugins.preprocessors
Class StoreTimestampPreprocessor

java.lang.Object
  extended by m.c.m.proxyma.plugins.preprocessors.AbstractPreprocessor
      extended by m.c.m.proxyma.plugins.preprocessors.StoreTimestampPreprocessor
All Implemented Interfaces:
ResourceHandler

public class StoreTimestampPreprocessor
extends AbstractPreprocessor

This preprocessor realize a component that registers into a resource attribute the time when the request has come to the server.
It works in conjunction with the PerformanceTestSerializer and it could be useful to test the performances of the server.

NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.

Version:
$Id: StoreTimestampPreprocessor.java 170 2010-07-02 21:16:10Z marcolinuz $
Author:
Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com]

Constructor Summary
StoreTimestampPreprocessor(ProxymaContext context)
          The default constructor for this class
It prepares the context logger and the logger for the access-log.
 
Method Summary
 java.lang.String getHtmlDescription()
          Returns a short description of what the plugin does..
 java.lang.String getName()
          Returns the name of the plugin.
 void process(ProxymaResource aResource)
          This adds a resource attribute to the current resource in order to memorize the instant when the new request has come to the server.
 
Methods inherited from class m.c.m.proxyma.plugins.preprocessors.AbstractPreprocessor
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreTimestampPreprocessor

public StoreTimestampPreprocessor(ProxymaContext context)
The default constructor for this class
It prepares the context logger and the logger for the access-log. NOTE: Every plugin must have a constructor that takes a ProxymaContext as parameter.

Method Detail

process

public void process(ProxymaResource aResource)
This adds a resource attribute to the current resource in order to memorize the instant when the new request has come to the server. It can be used to verfy the performances of the server.

Specified by:
process in interface ResourceHandler
Specified by:
process in class AbstractPreprocessor
Parameters:
aResource - any ProxymaResource
See Also:
PerformanceTestSerializer

getName

public java.lang.String getName()
Returns the name of the plugin.

Specified by:
getName in interface ResourceHandler
Specified by:
getName in class AbstractPreprocessor
Returns:
the name of the plugin.

getHtmlDescription

public java.lang.String getHtmlDescription()
Returns a short description of what the plugin does..
You can use html tags into it.
The result of this method call can be used by any interface to explain for what is the puropse of the plugin.

Specified by:
getHtmlDescription in interface ResourceHandler
Specified by:
getHtmlDescription in class AbstractPreprocessor
Returns:
a short description of the plugin


Copyright © 2010. All Rights Reserved.