Class JavaVersionRecommendationAdminMonitor

    • Constructor Detail

      • JavaVersionRecommendationAdminMonitor

        public JavaVersionRecommendationAdminMonitor()
    • Method Detail

      • isActivated

        public boolean isActivated()
        Description copied from class: AdministrativeMonitor
        Returns true if this monitor is activated and wants to produce a warning message.

        This method is called from the HTML rendering thread, so it should run efficiently.

        Specified by:
        isActivated in class AdministrativeMonitor
      • doAct

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public org.kohsuke.stapler.HttpResponse doAct​(@QueryParameter
                                                      String no)
                                               throws IOException
        Depending on whether the user said "yes" or "no", send him to the right place.
        Throws:
        IOException
      • getJavaVersion

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public int getJavaVersion()
        Returns:
        The current feature-release counter.
        See Also:
        Runtime.version()
      • getEndOfLifeAsDate

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public Date getEndOfLifeAsDate()
        Returns:
        The end of life date for the current Java version in the system default time zone.
      • getSeverityAsString

        @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
        public String getSeverityAsString()
        Returns:
        The severity of the administrative monitor, used to set the background color of the alert.