|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.sdk.monitoring.probe.HealthProbeResult
public class HealthProbeResult
This class is used to represent the result of a Health Probe.
| Constructor Summary | |
|---|---|
HealthProbeResult(IProbeInfoObject healthProbe)
This constructor is used to get the InfoObject which represents the Health Probe and initializes all variables for the result. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
This method is used to retrieve the description 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. |
IProbeInfoObject |
getProbeInfoObject()
This method is used to get the Probe InfoObject. |
java.util.Map |
getProbeMetrics()
This method is used to get the map of the Virtual Metrics. |
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 |
setDebugMessage(java.lang.String message)
This method is used to set the debug messages when the probe is run. |
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 |
setName(java.lang.String name)
This method is used to set the name of the probe. |
void |
setProbeInfoObject(IProbeInfoObject probeInfoObject)
This method is used to set the Probe InfoObject. |
void |
setProbeMetrics(java.lang.String name,
java.lang.Object value)
This method is used to set the value for a Virtual Metric. |
void |
setProbeMetricsMap(java.util.Map map)
This method is used to set the probe metrics map. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HealthProbeResult(IProbeInfoObject healthProbe)
This constructor is used to get the InfoObject which represents the Health Probe and initializes all variables for the result.
healthProbe - probe InfoObject| Method Detail |
|---|
public 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 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 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 - probe namepublic 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 - probe description
public void setProbeMetrics(java.lang.String name,
java.lang.Object value)
throws MonitoringException,
SDKException
IHealthProbeResultThis method is used to set the value for a Virtual Metric.
setProbeMetrics in interface IHealthProbeResultname - name of the metricvalue - value of the metric
MonitoringException - MetricsNotFound.
SDKException - An SDKException
public void setProbeMetricsMap(java.util.Map map)
throws SDKException
IHealthProbeResultThis method is used to set the probe metrics map.
setProbeMetricsMap in interface IHealthProbeResultmap - virtual metrics map
SDKException - SDKExceptionpublic java.util.Map getProbeMetrics()
IHealthProbeResultThis method is used to get the map of the Virtual Metrics.
getProbeMetrics in interface IHealthProbeResultpublic 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)
This method is used to set the exception for the probe.
setException in interface IProbeResultex - Exception thrown when the probe is made to runpublic void setDebugMessage(java.lang.String message)
This method is used to set the debug messages when the probe is run.
message - debug message to be returned when the probe is run.public 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 setProbeInfoObject(IProbeInfoObject probeInfoObject)
IHealthProbeResultThis method is used to set the Probe InfoObject.
setProbeInfoObject in interface IHealthProbeResultprobeInfoObject - Info Object of the health probepublic IProbeInfoObject getProbeInfoObject()
IHealthProbeResult
getProbeInfoObject in interface IHealthProbeResult
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||