Class NodeMonitoringAction

java.lang.Object
org.jvnet.hudson.plugins.monitoring.NodeMonitoringAction
All Implemented Interfaces:
Action, ModelObject

public class NodeMonitoringAction extends Object implements Action
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 Details

    • NodeMonitoringAction

      public NodeMonitoringAction(Computer computer, String displayName, String iconPath)
      Constructor.
      Parameters:
      computer - Computer
      displayName - String
      iconPath - String
  • Method Details

    • getComputer

      public Computer getComputer()
      Returns:
      Computer
    • getDisplayName

      public final String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getIconFileName

      public final String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getMonitoringUrl

      public String getMonitoringUrl()
      Used in index.jelly
      Returns:
      String
    • getCsrfTokenUrlPart

      public 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