Package hudson.model

Class UsageStatistics

    • Field Detail

      • DISABLED

        public static boolean DISABLED
    • Constructor Detail

      • UsageStatistics

        public UsageStatistics()
      • UsageStatistics

        public UsageStatistics​(String keyImage)
        Creates an instance with a specific public key image.
    • Method Detail

      • isDue

        public boolean isDue()
        Returns true if it's time for us to check for new version.
      • getStatData

        public String getStatData()
                           throws IOException
        Gets the encrypted usage stat data to be sent to the Hudson server. Used exclusively by jelly: resources/hudson/model/UsageStatistics/footer.jelly
        Throws:
        IOException
      • configure

        public boolean configure​(org.kohsuke.stapler.StaplerRequest req,
                                 net.sf.json.JSONObject json)
                          throws Descriptor.FormException
        Description copied from class: Descriptor
        Invoked when the global configuration page is submitted. Can be overridden to store descriptor-specific information.
        Overrides:
        configure in class Descriptor<PageDecorator>
        json - The JSON object that captures the configuration data for this Descriptor. See https://www.jenkins.io/doc/developer/forms/structured-form-submission/
        Returns:
        false to keep the client in the same config page.
        Throws:
        Descriptor.FormException