hudson.diagnosis
Class TooManyJobsButNoView

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.AdministrativeMonitor
          extended by hudson.diagnosis.TooManyJobsButNoView
All Implemented Interfaces:
ExtensionPoint, ModelObject, SearchableModelObject, SearchItem

@Extension
public class TooManyJobsButNoView
extends AdministrativeMonitor

If Hudson is run with a lot of jobs but no views, suggest the user that they can create views.

I noticed at an user visit that some users didn't notice the '+' icon in the tab bar.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static int THRESHOLD
           
 
Fields inherited from class hudson.model.AdministrativeMonitor
id
 
Constructor Summary
TooManyJobsButNoView()
           
 
Method Summary
 void doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Depending on whether the user said "yes" or "no", send him to the right place.
 boolean isActivated()
          Returns true if this monitor is activated and wants to produce a warning message.
 
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getDisplayName, getSearchUrl, getUrl, isEnabled
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THRESHOLD

public static final int THRESHOLD
See Also:
Constant Field Values
Constructor Detail

TooManyJobsButNoView

public TooManyJobsButNoView()
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

public void doAct(org.kohsuke.stapler.StaplerRequest req,
                  org.kohsuke.stapler.StaplerResponse rsp)
           throws IOException
Depending on whether the user said "yes" or "no", send him to the right place.

Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.