|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IProbeResult
This is the base interface for all the probe results.
| Method Summary | |
|---|---|
long |
getDuration()
This method is used to retrieve the probe execution time in seconds. |
boolean |
getResult()
This method is used to retrieve the probe result. |
boolean |
isTimedOut()
This method is used to know if the probe is timed out. |
void |
probeFailed()
This method is used to indicate the status - probe execution failed. |
void |
probeSucceeded()
This method is used to indicate the status - probe execution succeeded. |
void |
probeTimedout()
This method is used when the probe is timed out. |
void |
setDescription(java.lang.String desc)
This method is used to set the description of the probe. |
void |
setDuration(long duration)
This method is used to set the execution time of the probe. |
void |
setErrorMessage(java.lang.String errorMessage)
This method is used to set the error messages when the probe is executed. |
void |
setException(java.lang.Exception ex)
This method is used to set the exception for the probe. |
void |
setName(java.lang.String name)
This method is used to set the name of the probe. |
| Method Detail |
|---|
void probeSucceeded()
This method is used to indicate the status - probe execution succeeded.
void probeFailed()
This method is used to indicate the status - probe execution failed.
void setDuration(long duration)
This method is used to set the execution time of the probe.
duration - Time in seconds for the execution of probevoid setErrorMessage(java.lang.String errorMessage)
This method is used to set the error messages when the probe is executed.
errorMessage - Error message returned when the probe is executed.void setName(java.lang.String name)
This method is used to set the name of the probe.
name - Name of the probevoid setDescription(java.lang.String desc)
This method is used to set the description of the probe.
desc - Description of the probevoid setException(java.lang.Exception ex)
This method is used to set the exception for the probe.
ex - Exception thrown when the probe is made to runlong getDuration()
This method is used to retrieve the probe execution time in seconds.
boolean getResult()
This method is used to retrieve the probe result.
void probeTimedout()
This method is used when the probe is timed out.
boolean isTimedOut()
This method is used to know if the probe is timed out.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||