hudson.plugins.sitemonitor.model
Class Result

java.lang.Object
  extended by hudson.plugins.sitemonitor.model.Result

public class Result
extends java.lang.Object

This class keeps the details of a site monitoring result.

Author:
cliffano

Field Summary
private  java.lang.String mNote
          Additional textual information for the site monitoring result, e.g.
private  java.lang.Integer mResponseCode
          The response code returned from the site.
private  Site mSite
          The monitored site.
private  Status mStatus
          Status of the monitored site.
 
Constructor Summary
Result(Site site, java.lang.Integer responseCode, Status status, java.lang.String note)
          Constructs a Result.
 
Method Summary
 java.lang.String getNote()
           
 java.lang.Integer getResponseCode()
           
 Site getSite()
           
 Status getStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mSite

private Site mSite
The monitored site.


mResponseCode

private java.lang.Integer mResponseCode
The response code returned from the site.


mStatus

private Status mStatus
Status of the monitored site. It can't be derived from the response code because the success response code global config can differ between each build.


mNote

private java.lang.String mNote
Additional textual information for the site monitoring result, e.g. exception message when the site monitoring gives an unexpected exception.

Constructor Detail

Result

public Result(Site site,
              java.lang.Integer responseCode,
              Status status,
              java.lang.String note)
Constructs a Result.

Parameters:
site - the monitored site
responseCode - the response code returned from the site
status - status of the monitored site
note - additional textual information of the result
Method Detail

getSite

public final Site getSite()
Returns:
the monitored site

getResponseCode

public final java.lang.Integer getResponseCode()
Returns:
the response code

getStatus

public final Status getStatus()
Returns:
the status of the monitored site

getNote

public final java.lang.String getNote()
Returns:
the note


Copyright © 2010. All Rights Reserved.