|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.monitoring.NopComponentMonitor
public class NopComponentMonitor
This class provides empty implementation for ComponentMonitor.
It can be used as a base class so that subclass can override only the events of interest.
| Constructor Summary | |
|---|---|
NopComponentMonitor()
|
|
| Method Summary | |
|---|---|
void |
constructed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Object instance,
long duration)
This method is called right after the constructor is invoked successfully. |
void |
constructing(java.lang.reflect.Constructor ctor,
java.lang.Object[] args)
This method is called right before the constructor is invoked. |
void |
constructionFailed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Throwable e,
long duration)
This method is called after the constructor failed. |
void |
invocationFailed(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Throwable err,
long duration)
This method is called after the target method failed. |
void |
invoked(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Object result,
long duration)
This method is called after the target method is successfully executed. |
void |
invoking(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
This method is called right before the target method is invoked. |
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 |
propertyGetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Throwable err,
long duration)
This method is called after the getter failed. |
void |
propertyGetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc)
This method is called right before the getter is called. |
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. |
void |
propertyGot(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object result,
long duration)
This method is called after the getter is called successfully. |
void |
propertySet(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val,
long duration)
This method is called after the setter is called successfully. |
void |
propertySet(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val,
long duration)
This method is called after the setter is called successfully. |
void |
propertySetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val,
java.lang.Throwable err,
long duration)
This method is called after the setter failed. |
void |
propertySetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val,
java.lang.Throwable err,
long duration)
This method is called after the setter failed. |
void |
propertySetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val)
This method is called right before the setter is called. |
void |
propertySetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val)
This method is called right before the setter is called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NopComponentMonitor()
| Method Detail |
|---|
public void invocationFailed(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Throwable err,
long duration)
MethodMonitor
invocationFailed in interface MethodMonitorobj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.err - the exception thrown out from the target method.duration - exactly how long it took to execute the target method. (in milliseconds)
public void invoked(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Object result,
long duration)
MethodMonitor
invoked in interface MethodMonitorobj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.result - the return value from the target method.duration - exactly how long it took to execute the target method. (in milliseconds)
public void invoking(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
MethodMonitor
invoking in interface MethodMonitorobj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.
public void propertySet(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val,
long duration)
SetterMonitor
propertySet in interface SetterMonitorobj - the java bean object.desc - the descriptor for the property.val - the property value to set.duration - exactly how long it took to run the setter. (in milliseconds)
public void propertySetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val,
java.lang.Throwable err,
long duration)
SetterMonitor
propertySetFailed in interface SetterMonitorobj - the java bean object.desc - the descriptor for the property.val - the property value to set.err - the exception thrown out of the getter.duration - exactly how long it took to run the setter. (in milliseconds)
public void propertySetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object val)
SetterMonitor
propertySetting in interface SetterMonitorobj - the java bean object.desc - the descriptor for the property.val - the property value to set.
public void propertyGetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Throwable err,
long duration)
IndexedGetterMonitor
propertyGetFailed in interface IndexedGetterMonitorobj - 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)
public void propertyGetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind)
IndexedGetterMonitor
propertyGetting in interface IndexedGetterMonitorobj - the java bean object.desc - the descriptor for the property.ind - the index.
public void propertyGot(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val,
long duration)
IndexedGetterMonitor
propertyGot in interface IndexedGetterMonitorobj - 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)
public void propertyGetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Throwable err,
long duration)
GetterMonitor
propertyGetFailed in interface GetterMonitorobj - the java bean object.desc - the descriptor for the property.err - the exception thrown out of the getter.duration - exactly how long it took to run the getter. (in milliseconds)
public void propertyGetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc)
GetterMonitor
propertyGetting in interface GetterMonitorobj - the java bean object.desc - the descriptor for the property.
public void propertyGot(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
java.lang.Object result,
long duration)
GetterMonitor
propertyGot in interface GetterMonitorobj - the java bean object.desc - the descriptor for the property.result - the property value.duration - exactly how long it took to run the getter. (in milliseconds)
public void propertySet(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val,
long duration)
IndexedSetterMonitor
propertySet in interface IndexedSetterMonitorobj - the java bean object.desc - the descriptor for the property.ind - the index.val - the property value to set.duration - exactly how long it took to run the setter. (in milliseconds)
public void propertySetFailed(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val,
java.lang.Throwable err,
long duration)
IndexedSetterMonitor
propertySetFailed in interface IndexedSetterMonitorobj - the java bean object.desc - the descriptor for the property.ind - the index.val - the property value to set.err - the exception thrown out of the getter.duration - exactly how long it took to run the setter. (in milliseconds)
public void propertySetting(java.lang.Object obj,
java.beans.PropertyDescriptor desc,
int ind,
java.lang.Object val)
IndexedSetterMonitor
propertySetting in interface IndexedSetterMonitorobj - the java bean object.desc - the descriptor for the property.ind - the index.val - the property value to set.
public void constructed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Object instance,
long duration)
CtorMonitor
constructed in interface CtorMonitorctor - the constructor.args - the arguments passed to the constructor.instance - the object created by the constructor.duration - excactly how long the constructor execution takes. (in milliseconds)
public void constructing(java.lang.reflect.Constructor ctor,
java.lang.Object[] args)
CtorMonitor
constructing in interface CtorMonitorctor - the constructor to be called.args - the arguments passed to the constructor.
public void constructionFailed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Throwable e,
long duration)
CtorMonitor
constructionFailed in interface CtorMonitorctor - the constructor.args - the arguments passed to the constructor.e - the exception thrown out of the constructor.duration - exactly how long the constructor execution takes. (in milliseconds)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||