|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritAdministrativeMonitor
@Extension public class GerritAdministrativeMonitor
Displays a warning message in /manage if the Gerrit connection is down or some other warning.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class hudson.model.AdministrativeMonitor |
---|
id |
Constructor Summary | |
---|---|
GerritAdministrativeMonitor()
Default constructor. |
Method Summary | |
---|---|
protected void |
addThisAsConnectionListener()
Adds this monitor as a connection listener to PluginImpl. |
void |
connectionDown()
|
void |
connectionEstablished()
|
java.util.List<GerritVersionChecker.Feature> |
getDisabledFeatures()
A list of the features that has been disabled due to old Gerrit version. |
int |
getSendQueueSize()
Gets the current send-command queue size. |
boolean |
hasDisabledFeatures()
If there are features disabled due to old Gerrit version. |
boolean |
isActivated()
|
boolean |
isConnectionError()
Tells if there is a connection error. |
boolean |
isConnectionWarning()
Tells if there is a connection warning. |
boolean |
isGerritSnapshotVersion()
If the connected Gerrit is a snapshot version. |
boolean |
isSendQueueWarning()
Tells if there is a warning with the send-commands-queue. |
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 |
Constructor Detail |
---|
public GerritAdministrativeMonitor()
addThisAsConnectionListener()
.
PluginImpl.addListener(com.sonyericsson.hudson.plugins.gerrit.gerritevents.ConnectionListener)
Method Detail |
---|
protected void addThisAsConnectionListener()
PluginImpl.addListener(com.sonyericsson.hudson.plugins.gerrit.gerritevents.ConnectionListener)
public boolean isSendQueueWarning()
public int getSendQueueSize()
public boolean isConnectionWarning()
public boolean isConnectionError()
public boolean isActivated()
isActivated
in class hudson.model.AdministrativeMonitor
public boolean isGerritSnapshotVersion()
public java.util.List<GerritVersionChecker.Feature> getDisabledFeatures()
public boolean hasDisabledFeatures()
public void connectionEstablished()
connectionEstablished
in interface ConnectionListener
public void connectionDown()
connectionDown
in interface ConnectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |