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
ConstructorDescriptionNodeMonitoringAction
(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 String
final String
Used in index.jellyprotected boolean
Checks 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:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getUrlName
- Specified by:
getUrlName
in 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
-