Class AdvancedProcFilesRetriever
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
- All Implemented Interfaces:
ExtensionPoint
,Describable<ObjectComponent<Computer>>
- Direct Known Subclasses:
JVMProcessSystemMetricsContents
,SystemConfiguration
Base class for gathering specified /proc files with the capacity of selecting whether filter or not each file
content. You may want to filter some files and not doing so to other files.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A class to define a file with a name in the bundle and also whether its content should be filtered.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addUnixContents
(Container container, Node node) Specify in whichComponent.ComponentCategory
the current component is related.If you want to use this method, it's best to useProcFilesRetriever
.abstract Set<AdvancedProcFilesRetriever.ProcFile>
The method to define the files to include in the bundle.Methods inherited from class com.cloudbees.jenkins.support.impl.ProcFilesRetriever
addContents, addContents, afterAddUnixContents, getNodeName, getNodes, getRequiredPermissions, getSystemPlatform, isApplicable
Methods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
allInstances, for_, getDescriptor, isApplicable, isSelectedByDefault
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getDisplayName, getDisplayPermissions, getId, isEnabled, isSelectedByDefault, start
-
Constructor Details
-
AdvancedProcFilesRetriever
public AdvancedProcFilesRetriever()
-
-
Method Details
-
getFilesToRetrieve
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public Map<String,String> getFilesToRetrieve()If you want to use this method, it's best to useProcFilesRetriever
.- Specified by:
getFilesToRetrieve
in classProcFilesRetriever
- Returns:
- the map of files that should be retrieved and put in the support bundle.
-
getProcFilesToRetrieve
The method to define the files to include in the bundle. You addAdvancedProcFilesRetriever.ProcFile
to be able to specify file by file whether its content should be filtered or not.- Returns:
- a set of files to be included in the bundle
-
addUnixContents
- Overrides:
addUnixContents
in classProcFilesRetriever
-
getCategory
Description copied from class:Component
Specify in whichComponent.ComponentCategory
the current component is related.- Overrides:
getCategory
in classProcFilesRetriever
- Returns:
- An enum value of
Component.ComponentCategory
.
-