net.sourceforge.buildmonitor.monitors
Class BambooMonitor

java.lang.Object
  extended by net.sourceforge.buildmonitor.monitors.BambooMonitor
All Implemented Interfaces:
java.lang.Runnable, Monitor

public class BambooMonitor
extends java.lang.Object
implements Monitor

The run method of this Runnable implementation monitor a Bamboo build

Author:
sbrunot

Constructor Summary
BambooMonitor(BuildMonitor theBuildMonitorInstance)
           
 
Method Summary
 void displayOptionsDialog()
          Display the options dialog on screen.
 java.net.URI getBuildURI(java.lang.String theIdOfTheBuild)
          Return an URI to the dedicated page of a build on the monitored build system
 java.net.URI getMainPageURI()
          Return an URI to the main page of the monitored build system
 java.lang.String getMonitoredBuildSystemName()
          Return the name of the monitored build system (to be used in tray icon popup menu entries)
 java.lang.String getSystemTrayIconTooltipHeader()
          Get the String to display as the first line of the Tooltip of the system tray icon.
 void run()
          
 void stop()
          stop the monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooMonitor

public BambooMonitor(BuildMonitor theBuildMonitorInstance)
              throws java.io.FileNotFoundException,
                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
stop the monitor.

Specified by:
stop in interface Monitor

getMainPageURI

public java.net.URI getMainPageURI()
Return an URI to the main page of the monitored build system

Specified by:
getMainPageURI in interface Monitor

getBuildURI

public java.net.URI getBuildURI(java.lang.String theIdOfTheBuild)
Return an URI to the dedicated page of a build on the monitored build system

Specified by:
getBuildURI in interface Monitor
Parameters:
theIdOfTheBuild - the Id of the build (as in the BuildReport)
Returns:
an URI to the dedicated page of a build on the monitored build system

getSystemTrayIconTooltipHeader

public java.lang.String getSystemTrayIconTooltipHeader()
Get the String to display as the first line of the Tooltip of the system tray icon.

Specified by:
getSystemTrayIconTooltipHeader in interface Monitor
Returns:
the String to display as the first line of the Tooltip of the system tray icon.

displayOptionsDialog

public void displayOptionsDialog()
Display the options dialog on screen.

Specified by:
displayOptionsDialog in interface Monitor

getMonitoredBuildSystemName

public java.lang.String getMonitoredBuildSystemName()
Return the name of the monitored build system (to be used in tray icon popup menu entries)

Specified by:
getMonitoredBuildSystemName in interface Monitor
Returns:
the name of the monitored build system


Copyright © 2007. All Rights Reserved.