making web application programming easier is possible


create a probe

The probe can be a class of any kind since no class must be extended or implemented. What the probe utilities class offers is a mechanism to save the status of an operation. This mechanism can be used to save the execution status of any operation.

Here is the code of a probe:

In this example, the probe mechanism has been added to a scheduled class.
We have to define a unique probe name (String probeName = "my probe";) and to set the execution result using the method setStatus of class ProbeStatus.
If an error occurs, or if the probe fails, we can send an email using the method sendEmail of class ProbeUtil.