Class JQSMonitoring

    • Constructor Detail

      • JQSMonitoring

        public JQSMonitoring()
        Constructor
    • Method Detail

      • getApi

        public Api getApi()
        REST API.
        Returns:
        new api instance.
      • 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.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(inline=true)
        public SlavesHolder getSlavesHolder()
        Returns an instance of the SlavesHolder.
        Returns:
        the instance.