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
  • Constructor Details

    • JQSMonitoring

      public JQSMonitoring()
      Constructor
  • Method Details

    • getApi

      public Api getApi()
      REST API.
      Returns:
      new api instance.
    • getWaitHistory

      public WaitHistory getWaitHistory()
      Returns the wait history.
      Returns:
      the wait history instance
    • getDisplayName

      @Exported public String getDisplayName()
      Returns the display name for this plugin.
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getIconFileName

      @Exported public String getIconFileName()
      Returns the icon url for this plugin.
      Specified by:
      getIconFileName in interface Action
      Returns:
      the icon file name.
    • getUrlName

      @Exported public String getUrlName()
      Returns the url for this plugin.
      Specified by:
      getUrlName in interface Action
      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.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 - Request
      rsp - Response
      Throws:
      IOException - input/ouput
      jakarta.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 - Request
      rsp - Response
      Throws:
      IOException
      jakarta.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.