Class GerritAdministrativeMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritAdministrativeMonitor
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
Displays a warning message in /manage if the Gerrit connection is down or some other warning.
- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the current send-command queue size.booleanbooleanTells if there is a warning with the send-commands-queue.Methods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getDisplayName, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isEnabled, isSecurityMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
GerritAdministrativeMonitor
public GerritAdministrativeMonitor()
-
-
Method Details
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin classAdministrativeMonitor
-
isSendQueueWarning
public boolean isSendQueueWarning()Tells if there is a warning with the send-commands-queue. Utility method for the jelly page.- Returns:
- true if so, false otherwise.
-
getSendQueueSize
public int getSendQueueSize()Gets the current send-command queue size. Utility method for the jelly page.- Returns:
- the amount of jobs in the queue.
-