Class NodeMonitoringAction
java.lang.Object
org.jvnet.hudson.plugins.monitoring.NodeMonitoringAction
- All Implemented Interfaces:
Action,ModelObject
Implements a "Monitoring" button for slaves.
This button will be available for everybody with Administer or SystemRead permissions.
- Since:
- 1.49
- Author:
- Oleg Nenashev (o.v.nenashev@gmail.com), Emeric Vernat
-
Constructor Summary
ConstructorsConstructorDescriptionNodeMonitoringAction(Computer computer, String displayName, String iconPath) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionSi la protection csrf est activée dans Jenkins (ce qui est le cas par défaut), retourne la partie de l'url avec le token csrf de javamelody.final Stringfinal StringUsed in index.jellyprotected booleanChecks that user has access permissions to the monitoring page.
-
Constructor Details
-
NodeMonitoringAction
Constructor.- Parameters:
computer- ComputerdisplayName- StringiconPath- String
-
-
Method Details
-
getComputer
- Returns:
- Computer
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getMonitoringUrl
Used in index.jelly- Returns:
- String
-
getCsrfTokenUrlPart
Si la protection csrf est activée dans Jenkins (ce qui est le cas par défaut), retourne la partie de l'url avec le token csrf de javamelody.- Returns:
- String
-
hasMonitoringPermissions
protected boolean hasMonitoringPermissions()Checks that user has access permissions to the monitoring page. By default, requires global Administer or SystemRead permissions.- Returns:
- boolean
-