|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.sdk.monitoring.probe.DiagnosticProbeResult
public class DiagnosticProbeResult
This class is used to represent the result of a Diagnostic Probe.
| Constructor Summary | |
|---|---|
DiagnosticProbeResult()
Constructor |
|
| Method Summary | |
|---|---|
void |
addDiagnosticMessage(java.lang.String message)
This method is used to add the diagnostic messages to the diagnostic result. |
java.lang.String |
getDescription()
This method is used to retrieve the description of the probe. |
java.lang.StringBuffer |
getDiagnosticMessages()
This method is used to get the diagnostic messages of the probe. |
long |
getDuration()
This method is used to retrieve the probe execution time in seconds. |
java.lang.String |
getName()
This method is used to retrieve the name of the probe. |
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 description)
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 |
setLocale(java.util.Locale l)
This method is used to set the locale. |
void |
setName(java.lang.String name)
This method is used to set the name of the probe. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiagnosticProbeResult()
| Method Detail |
|---|
public java.lang.StringBuffer getDiagnosticMessages()
IDiagnosticProbeResultThis method is used to get the diagnostic messages of the probe.
getDiagnosticMessages in interface IDiagnosticProbeResultpublic void probeFailed()
IProbeResultThis method is used to indicate the status - probe execution failed.
probeFailed in interface IProbeResultpublic void probeSucceeded()
IProbeResultThis method is used to indicate the status - probe execution succeeded.
probeSucceeded in interface IProbeResultpublic java.lang.String getName()
This method is used to retrieve the name of the probe.
public void setName(java.lang.String name)
This method is used to set the name of the probe.
setName in interface IProbeResultname - Name of the probepublic java.lang.String getDescription()
This method is used to retrieve the description of the probe.
public void setDescription(java.lang.String description)
This method is used to set the description of the probe.
setDescription in interface IProbeResultdescription - description of the probepublic void setDuration(long duration)
IProbeResultThis method is used to set the execution time of the probe.
setDuration in interface IProbeResultduration - Time in seconds for the execution of probepublic void addDiagnosticMessage(java.lang.String message)
IDiagnosticProbeResultThis method is used to add the diagnostic messages to the diagnostic result.
addDiagnosticMessage in interface IDiagnosticProbeResultmessage - Individual Diagnostic Messagepublic void setErrorMessage(java.lang.String errorMessage)
IProbeResultThis method is used to set the error messages when the probe is executed.
setErrorMessage in interface IProbeResulterrorMessage - Error message returned when the probe is executed.public void setException(java.lang.Exception ex)
IProbeResultThis method is used to set the exception for the probe.
setException in interface IProbeResultex - Exception thrown when the probe is made to runpublic long getDuration()
IProbeResultThis method is used to retrieve the probe execution time in seconds.
getDuration in interface IProbeResultpublic boolean getResult()
IProbeResultThis method is used to retrieve the probe result.
getResult in interface IProbeResultpublic void probeTimedout()
IProbeResultThis method is used when the probe is timed out.
probeTimedout in interface IProbeResultpublic boolean isTimedOut()
IProbeResultThis method is used to know if the probe is timed out.
isTimedOut in interface IProbeResultpublic void setLocale(java.util.Locale l)
IDiagnosticProbeResultThis method is used to set the locale.
setLocale in interface IDiagnosticProbeResultl - Locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||