Class JQSMonitoring
java.lang.Object
org.jenkinsci.plugins.jqsmonitoring.jqscore.JQSMonitoring
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddoConfigSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Accepts the parameters from the local configuration page and passes them on to LocalConfig class.voiddoSetDefaults(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Sets the default values for the configuration.getApi()REST API.Refreshes and returns the instance of BuildQueue.Returns the display name for this plugin.Returns the address of the failed-jobs histogram.Returns the instance of FailHistory.Returns the icon url for this plugin.Returns the icons url for this plugin.Returns a list of jobs that have been running for too long.Returns an instance of the configuration.intReturns the number of all jobs in Jenkins/Hudson.Returns the root url for this plugin.Returns an instance of the SlavesHolder.Returns the url for this plugin.Returns the wait history.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenuMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
JQSMonitoring
public JQSMonitoring()Constructor
-
-
Method Details
-
getApi
REST API.- Returns:
- new api instance.
-
getWaitHistory
Returns the wait history.- Returns:
- the wait history instance
-
getDisplayName
Returns the display name for this plugin.- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
Returns the icon url for this plugin.- Specified by:
getIconFileNamein interfaceAction- Returns:
- the icon file name.
-
getUrlName
Returns the url for this plugin.- Specified by:
getUrlNamein interfaceAction- Returns:
- the url name.
-
getBuildQueue
Refreshes and returns the instance of BuildQueue.- Returns:
- the BuildQueue instance
-
getRootURL
Returns the root url for this plugin.- Returns:
- the url.
-
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
Returns a list of jobs that have been running for too long.- Returns:
- list with the jobs.
-
getFailHistory
Returns the instance of FailHistory.- Returns:
- the instance
-
getFailedBuildHistogram
Returns the address of the failed-jobs histogram.- Returns:
- the address
-
doConfigSubmit
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Accepts the parameters from the local configuration page and passes them on to LocalConfig class.- Parameters:
req- Requestrsp- Response- Throws:
IOException- input/ouputjakarta.servlet.ServletException
-
doSetDefaults
public void doSetDefaults(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Sets the default values for the configuration.- Parameters:
req- Requestrsp- Response- Throws:
IOExceptionjakarta.servlet.ServletException
-
getLocalConfig
Returns an instance of the configuration.- Returns:
- a configuration instance.
-
getSlavesHolder
Returns an instance of the SlavesHolder.- Returns:
- the instance.
-