Class JQSMonitoring
- java.lang.Object
-
- org.jenkinsci.plugins.jqsmonitoring.jqscore.JQSMonitoring
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
@ExportedBean @Extension public class JQSMonitoring extends Object implements RootAction
Main class of the Plugin. Extension Point.- Author:
- yboev
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JQSMonitoring()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
Method Detail
-
getApi
public Api getApi()
REST API.- Returns:
- new api instance.
-
getDisplayName
@Exported public String getDisplayName()
Returns the display name for this plugin.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getIconFileName
@Exported public String getIconFileName()
Returns the icon url for this plugin.- Specified by:
getIconFileName
in interfaceAction
- Returns:
- the icon file name.
-
getUrlName
@Exported public String getUrlName()
Returns the url for this plugin.- Specified by:
getUrlName
in interfaceAction
- Returns:
- the url name.
-
getBuildQueue
@Exported(inline=true) public BuildQueue getBuildQueue()
Refreshes and returns the instance of BuildQueue.- Returns:
- the BuildQueue instance
-
getRootURL
@Exported public String getRootURL()
Returns the root url for this plugin.- Returns:
- the url.
-
getIconsURL
@Exported 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(inline=true) public ArrayList<RunningJob> getJobsRunningTooLong()
Returns a list of jobs that have been running for too long.- Returns:
- list with the jobs.
-
getFailHistory
@Exported(inline=true) public FailHistory getFailHistory()
Returns the instance of FailHistory.- Returns:
- the instance
-
getFailedBuildHistogram
@Exported 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
- Requestrsp
- Response- Throws:
IOException
- input/ouputjavax.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
- Requestrsp
- Response- Throws:
IOException
javax.servlet.ServletException
-
getLocalConfig
public LocalConfig getLocalConfig()
Returns an instance of the configuration.- Returns:
- a configuration instance.
-
getSlavesHolder
@Exported(inline=true) public SlavesHolder getSlavesHolder()
Returns an instance of the SlavesHolder.- Returns:
- the instance.
-
-