|
||||||||||
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 | |
---|---|
LinkedList<String> |
getConnectionErrorServers()
Returns the names of the servers with a connection error. |
LinkedList<String> |
getConnectionWarningServers()
Returns the names of the servers with a connection warning. |
List<GerritVersionChecker.Feature> |
getDisabledFeatures(String serverName)
Returns the list of disabled features for a specific server. |
LinkedList<String> |
getDisabledFeaturesServers()
Returns the names of the servers with disabled features. |
int |
getSendQueueSize()
Gets the current send-command queue size. |
LinkedList<String> |
getSnapshotServers()
Returns the names of the Gerrit servers with a snapshot version. |
boolean |
hasDisabledFeatures()
If there is at least one server with features disabled due to old Gerrit version. |
boolean |
isActivated()
|
boolean |
isConnectionError()
Tells if there is at least one connection error. |
boolean |
isConnectionWarning()
Tells if there is at least one connection warning. |
boolean |
isGerritSnapshotVersion()
If at least one 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()
Method Detail |
---|
public boolean isActivated()
isActivated
in class hudson.model.AdministrativeMonitor
public boolean isConnectionWarning()
public LinkedList<String> getConnectionWarningServers()
public boolean isConnectionError()
public LinkedList<String> getConnectionErrorServers()
public boolean isSendQueueWarning()
public int getSendQueueSize()
public boolean isGerritSnapshotVersion()
public LinkedList<String> getSnapshotServers()
public boolean hasDisabledFeatures()
public LinkedList<String> getDisabledFeaturesServers()
public List<GerritVersionChecker.Feature> getDisabledFeatures(String serverName)
serverName
- the name of the Gerrit server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |