hudson.diagnosis
Class TooManyJobsButNoView
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THRESHOLD
public static final int THRESHOLD
- See Also:
- Constant Field Values
TooManyJobsButNoView
public TooManyJobsButNoView()
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.