|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.buildmonitor.monitors.CruiseControlRssMonitor
public class CruiseControlRssMonitor
The run method of this Runnable implementation monitor a Cruise Control build using Cruise Control RSS feeds.
Constructor Summary | |
---|---|
CruiseControlRssMonitor(BuildMonitor theApplicationInstance,
java.net.URL theUrlToTheCruiseControlRssFeed,
java.text.DateFormat theRssFeedDateFormat,
int theUpdatePeriodInSeconds)
Create a new instance. |
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 |
protected java.util.Map<java.lang.String,RssFeedItem> |
getLastBuildsStatus()
Exposes last builds status for unit testing... |
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()
TODO: IMPLEMENTS AND DOCUMENTS ME ! |
void |
stop()
TODO: DO SOMETHING BETTER HERE.... |
protected void |
updateBuildStatusGui()
TODO: WHAT IS THE LIMITATION ON TOOLTIPS LENGTH ? |
protected void |
updateStatus()
TODO: IMPLEMENTS ME AND DOCUMENT ME ! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CruiseControlRssMonitor(BuildMonitor theApplicationInstance, java.net.URL theUrlToTheCruiseControlRssFeed, java.text.DateFormat theRssFeedDateFormat, int theUpdatePeriodInSeconds)
theApplicationInstance
- the build monitor instance this thread is running fortheUrlToTheCruiseControlRssFeed
- URL to the cruise control rss feed to monitortheUpdatePeriodInSeconds
- period in seconds between to checks of the rss feed to update
the build statusMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void stop()
stop
in interface Monitor
public java.net.URI getMainPageURI()
getMainPageURI
in interface Monitor
public java.net.URI getBuildURI(java.lang.String theIdOfTheBuild)
getBuildURI
in interface Monitor
theIdOfTheBuild
- the Id of the build (as in the BuildReport)
public java.lang.String getSystemTrayIconTooltipHeader()
getSystemTrayIconTooltipHeader
in interface Monitor
public void displayOptionsDialog()
displayOptionsDialog
in interface Monitor
public java.lang.String getMonitoredBuildSystemName()
getMonitoredBuildSystemName
in interface Monitor
protected void updateStatus() throws MonitoringException
MonitoringException
protected void updateBuildStatusGui()
protected java.util.Map<java.lang.String,RssFeedItem> getLastBuildsStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |