jfun.yan.monitoring
Interface IndexedGetterMonitor

All Known Subinterfaces:
ComponentMonitor
All Known Implementing Classes:
NopComponentMonitor

public interface IndexedGetterMonitor

This interface represents something that monitors the invocation of an indexed java bean getter.

Author:
Michelle Lei

Method Summary
 void propertyGetFailed(java.lang.Object obj, java.beans.PropertyDescriptor desc, int ind, java.lang.Throwable err, long duration)
          This method is called after the getter failed.
 void propertyGetting(java.lang.Object obj, java.beans.PropertyDescriptor desc, int ind)
          This method is called right before the getter is called.
 void propertyGot(java.lang.Object obj, java.beans.PropertyDescriptor desc, int ind, java.lang.Object val, long duration)
          This method is called after the getter is called successfully.
 

Method Detail

propertyGetting

void propertyGetting(java.lang.Object obj,
                     java.beans.PropertyDescriptor desc,
                     int ind)
This method is called right before the getter is called.

Parameters:
obj - the java bean object.
desc - the descriptor for the property.
ind - the index.

propertyGot

void propertyGot(java.lang.Object obj,
                 java.beans.PropertyDescriptor desc,
                 int ind,
                 java.lang.Object val,
                 long duration)
This method is called after the getter is called successfully.

Parameters:
obj - the java bean object.
desc - the descriptor for the property.
ind - the index.
val - the property value.
duration - exactly how long it took to run the getter. (in milliseconds)

propertyGetFailed

void propertyGetFailed(java.lang.Object obj,
                       java.beans.PropertyDescriptor desc,
                       int ind,
                       java.lang.Throwable err,
                       long duration)
This method is called after the getter failed.

Parameters:
obj - the java bean object.
desc - the descriptor for the property.
ind - the index.
err - the exception thrown out of the getter.
duration - exactly how long it took to run the getter. (in milliseconds)