org.jenkinsci.plugins.jqsmonitoring.jqscore
Class JQSMonitoring

java.lang.Object
  extended by org.jenkinsci.plugins.jqsmonitoring.jqscore.JQSMonitoring
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction

@ExportedBean
@Extension
public class JQSMonitoring
extends Object
implements hudson.model.RootAction

Main class of the Plugin. Extension Point.

Author:
yboev

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
JQSMonitoring()
          Constructor
 
Method Summary
 void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Accepts the parameters from the local configuration page and passes them on to LocalConfig class.
 void doSetDefaults(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Sets the default values for the configuration.
 hudson.model.Api getApi()
          REST API.
 BuildQueue getBuildQueue()
          Refreshes and returns the instance of BuildQueue.
 String getDisplayName()
          Returns the display name for this plugin.
 String getFailedBuildHistogram()
          Returns the address of the failed-jobs histogram.
 FailHistory getFailHistory()
          Returns the instance of FailHistory.
 String getIconFileName()
          Returns the icon url for this plugin.
 String getIconsURL()
          Returns the icons url for this plugin.
 ArrayList<RunningJob> getJobsRunningTooLong()
          Returns a list of jobs that have been running for too long.
 LocalConfig getLocalConfig()
          Returns an instance of the configuration.
 int getNumberOfAllJobs()
          Returns the number of all jobs in Jenkins/Hudson.
 String getRootURL()
          Returns the root url for this plugin.
 SlavesHolder getSlavesHolder()
          Returns an instance of the SlavesHolder.
 String getUrlName()
          Returns the url for this plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JQSMonitoring

public JQSMonitoring()
Constructor

Method Detail

getApi

public hudson.model.Api getApi()
REST API.

Returns:
new api instance.

getDisplayName

@Exported
public String getDisplayName()
Returns the display name for this plugin.

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getIconFileName

@Exported
public String getIconFileName()
Returns the icon url for this plugin.

Specified by:
getIconFileName in interface hudson.model.Action
Returns:
the icon file name.

getUrlName

public String getUrlName()
Returns the url for this plugin.

Specified by:
getUrlName in interface hudson.model.Action
Returns:
the url name.

getBuildQueue

@Exported
public BuildQueue getBuildQueue()
Refreshes and returns the instance of BuildQueue.

Returns:
the BuildQueue instance

getRootURL

public String getRootURL()
Returns the root url for this plugin.

Returns:
the url.

getIconsURL

public String getIconsURL()
Returns the icons url for this plugin.

Returns:
the url where icons can be found.

getNumberOfAllJobs

@Exported
public int getNumberOfAllJobs()
Returns the number of all jobs in Jenkins/Hudson.

Returns:
the jobs count

getJobsRunningTooLong

@Exported
public ArrayList<RunningJob> getJobsRunningTooLong()
Returns a list of jobs that have been running for too long.

Returns:
list with the jobs.

getFailHistory

@Exported
public FailHistory getFailHistory()
Returns the instance of FailHistory.

Returns:
the instance

getFailedBuildHistogram

public String getFailedBuildHistogram()
Returns the address of the failed-jobs histogram.

Returns:
the address

doConfigSubmit

public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws IOException,
                           javax.servlet.ServletException
Accepts the parameters from the local configuration page and passes them on to LocalConfig class.

Parameters:
req - Request
rsp - Response
Throws:
IOException - input/ouput
javax.servlet.ServletException

doSetDefaults

public void doSetDefaults(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws IOException,
                          javax.servlet.ServletException
Sets the default values for the configuration.

Parameters:
req - Request
rsp - Response
Throws:
IOException
javax.servlet.ServletException

getLocalConfig

public LocalConfig getLocalConfig()
Returns an instance of the configuration.

Returns:
a configuration instance.

getSlavesHolder

@Exported
public SlavesHolder getSlavesHolder()
Returns an instance of the SlavesHolder.

Returns:
the instance.


Copyright © 2004-2013. All Rights Reserved.