org.apache.tapestry.engine
Interface IMonitor

All Known Implementing Classes:
NullMonitor

public interface IMonitor

Basic support for application monitoring and metrics. This interface defines events; the implementation decides what to do with them (such as record them to a database).

Version:
$Id: IMonitor.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Method Summary
 void pageCreateBegin(String pageName)
          Invoked before constructing a page.
 void pageCreateEnd(String pageName)
          Invoked after successfully constructing a page and all of its components.
 void pageLoadBegin(String pageName)
          Invoked when a page is loaded.
 void pageLoadEnd(String pageName)
          Invoked once a page is completely loaded and rolled back to its prior state.
 void pageRenderBegin(String pageName)
          Invoked before a page render begins.
 void pageRenderEnd(String pageName)
          Invoked after a page has succesfully rendered.
 void pageRewindBegin(String pageName)
          Invoked before a page rewind (to respond to an action) begins.
 void pageRewindEnd(String pageName)
          Invoked after a page has succesfully been rewound (which includes any activity related to the action listener).
 void serviceBegin(String serviceName, String detailMessage)
          Invoked when a service begins processing.
 void serviceEnd(String serviceName)
          Invoked when a service successfully ends.
 void serviceException(Throwable exception)
          Invoked when a service throws an exception rather than completing normally.
 void sessionBegin()
          Invoked when a session is initiated.
 

Method Detail

pageCreateBegin

void pageCreateBegin(String pageName)
Invoked before constructing a page.


pageCreateEnd

void pageCreateEnd(String pageName)
Invoked after successfully constructing a page and all of its components.


pageLoadBegin

void pageLoadBegin(String pageName)
Invoked when a page is loaded. This includes time to locate or create an instance of the page and rollback its state (to any previously recorded value).


pageLoadEnd

void pageLoadEnd(String pageName)
Invoked once a page is completely loaded and rolled back to its prior state.


pageRenderBegin

void pageRenderBegin(String pageName)
Invoked before a page render begins.


pageRenderEnd

void pageRenderEnd(String pageName)
Invoked after a page has succesfully rendered.


pageRewindBegin

void pageRewindBegin(String pageName)
Invoked before a page rewind (to respond to an action) begins.


pageRewindEnd

void pageRewindEnd(String pageName)
Invoked after a page has succesfully been rewound (which includes any activity related to the action listener).


serviceBegin

void serviceBegin(String serviceName,
                  String detailMessage)
Invoked when a service begins processing.


serviceEnd

void serviceEnd(String serviceName)
Invoked when a service successfully ends.


serviceException

void serviceException(Throwable exception)
Invoked when a service throws an exception rather than completing normally. Processing of the request may continue with the display of an exception page.

serviceException() is always invoked before serviceEnd(String).


sessionBegin

void sessionBegin()
Invoked when a session is initiated. This is typically done from the implementation of the home service.