Class JVMProcessSystemMetricsContents.Agents
- java.lang.Object
-
- com.cloudbees.jenkins.support.api.Component
-
- com.cloudbees.jenkins.support.api.ObjectComponent<Computer>
-
- com.cloudbees.jenkins.support.impl.ProcFilesRetriever
-
- com.cloudbees.jenkins.support.impl.AdvancedProcFilesRetriever
-
- com.cloudbees.jenkins.support.impl.JVMProcessSystemMetricsContents
-
- com.cloudbees.jenkins.support.impl.JVMProcessSystemMetricsContents.Agents
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ObjectComponent<Computer>>
- Enclosing class:
- JVMProcessSystemMetricsContents
@Extension public static class JVMProcessSystemMetricsContents.Agents extends JVMProcessSystemMetricsContents
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JVMProcessSystemMetricsContents.Agents.DescriptorImpl
-
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.impl.JVMProcessSystemMetricsContents
JVMProcessSystemMetricsContents.Agents, JVMProcessSystemMetricsContents.Master
-
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.impl.AdvancedProcFilesRetriever
AdvancedProcFilesRetriever.ProcFile
-
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.api.Component
Component.ComponentCategory
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Agents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component.ComponentCategory
getCategory()
Specify in whichComponent.ComponentCategory
the current component is related.JVMProcessSystemMetricsContents.Agents.DescriptorImpl
getDescriptor()
String
getDisplayName()
String
getId()
Returns the component id.protected List<Node>
getNodes()
boolean
isApplicable(Computer item)
Return if this component is applicable to a specific item.<C extends AbstractModelObject>
booleanisApplicable(Class<C> clazz)
Return if this component is applicable to a specific class of item.boolean
isSelectedByDefault()
-
Methods inherited from class com.cloudbees.jenkins.support.impl.JVMProcessSystemMetricsContents
getProcFilesToRetrieve
-
Methods inherited from class com.cloudbees.jenkins.support.impl.AdvancedProcFilesRetriever
addUnixContents, getFilesToRetrieve
-
Methods inherited from class com.cloudbees.jenkins.support.impl.ProcFilesRetriever
addContents, addContents, afterAddUnixContents, getNodeName, getRequiredPermissions, getSystemPlatform
-
Methods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
allInstances, for_, isSelectedByDefault
-
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getDisplayPermissions, isEnabled, start
-
-
-
-
Method Detail
-
getDisplayName
@NonNull public String getDisplayName()
- Specified by:
getDisplayName
in classComponent
-
getCategory
@NonNull public Component.ComponentCategory getCategory()
Description copied from class:Component
Specify in whichComponent.ComponentCategory
the current component is related.- Overrides:
getCategory
in classAdvancedProcFilesRetriever
- Returns:
- An enum value of
Component.ComponentCategory
.
-
isSelectedByDefault
public boolean isSelectedByDefault()
- Overrides:
isSelectedByDefault
in classComponent
-
getNodes
protected List<Node> getNodes()
- Overrides:
getNodes
in classProcFilesRetriever
-
isApplicable
public <C extends AbstractModelObject> boolean isApplicable(Class<C> clazz)
Description copied from class:ObjectComponent
Return if this component is applicable to a specific class of item.- Overrides:
isApplicable
in classProcFilesRetriever
- Type Parameters:
C
- Object that extendsAbstractModelObject
- Parameters:
clazz
- the class- Returns:
true
if applicable to this class
-
isApplicable
public boolean isApplicable(Computer item)
Description copied from class:ObjectComponent
Return if this component is applicable to a specific item.- Overrides:
isApplicable
in classObjectComponent<Computer>
- Parameters:
item
- the item- Returns:
- true if applicable
-
getDescriptor
public JVMProcessSystemMetricsContents.Agents.DescriptorImpl getDescriptor()
Description copied from class:ObjectComponent
- Specified by:
getDescriptor
in interfaceDescribable<ObjectComponent<Computer>>
- Overrides:
getDescriptor
in classObjectComponent<Computer>
-
getId
@NonNull public String getId()
Description copied from class:Component
Returns the component id.- Overrides:
getId
in classComponent
- Returns:
- by default, the
Class.getSimpleName()
of the component implementation.
-
-