com.kerrybuckley.cctrayicon
Interface CcStatus

All Known Implementing Classes:
AbstractCcStatus

public interface CcStatus

An object representing the cruise control status of a particular server.

Author:
Kerry Buckley

Method Summary
 boolean isBuildClean()
          Returns a flag indicating whether the build was clean when last checked.
 boolean isServerReachable()
          Returns a flag indicating whether the server was reachable when last checked.
 void setServer(java.lang.String serverUrl)
          Set the server to monitor.
 void update()
          Update the status from the CruiseControl web page.
 

Method Detail

isServerReachable

public boolean isServerReachable()
Returns a flag indicating whether the server was reachable when last checked. Calling this method does not force a check of the server.

Returns:
whether the server was reachable

isBuildClean

public boolean isBuildClean()
                     throws java.io.IOException
Returns a flag indicating whether the build was clean when last checked. Calling this method does not force a check of the server.

Returns:
whether the build is clean
Throws:
java.io.IOException - if the status can't be read from the configured server

update

public void update()
Update the status from the CruiseControl web page.


setServer

public void setServer(java.lang.String serverUrl)
Set the server to monitor.

Parameters:
serverUrl - the URL of the Cruise Control server