org.shiftone.jrat.provider.tree
Class Delegate

java.lang.Object
  extended by org.shiftone.jrat.provider.tree.Delegate

public class Delegate
extends java.lang.Object

This is basically a thread specific MethodHandler. The typical JRat model is to have a seperate handler for each method. This is also true for the TreeMethodHandler, however that handler delegates to an instance of this class, passing it the method key with each invocation. One instance of this class will exist for each thread that is creating JRat events. This class manipulates a tree structure as invocations are made.

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
Delegate(TreeNode rootNode)
           
 
Method Summary
 void onMethodFinish(MethodKey methodKey, long duration, boolean success)
           
 void onMethodStart(MethodKey methodKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delegate

public Delegate(TreeNode rootNode)
Method Detail

onMethodStart

public final void onMethodStart(MethodKey methodKey)

onMethodFinish

public final void onMethodFinish(MethodKey methodKey,
                                 long duration,
                                 boolean success)