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
Nested ClassesModifier and TypeClassDescriptionstatic classA 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.ComponentCategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUnixContents(Container container, Node node) Specify in whichComponent.ComponentCategorythe 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, isApplicableMethods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
allInstances, for_, getDescriptor, isApplicable, isSelectedByDefaultMethods inherited from class com.cloudbees.jenkins.support.api.Component
canBeGeneratedAsync, getDisplayName, getDisplayPermissions, getId, isEnabled, isSelectedByDefault, start, supersedes
-
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:
getFilesToRetrievein 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.ProcFileto 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:
addUnixContentsin classProcFilesRetriever
-
getCategory
Description copied from class:ComponentSpecify in whichComponent.ComponentCategorythe current component is related.- Overrides:
getCategoryin classProcFilesRetriever- Returns:
- An enum value of
Component.ComponentCategory.
-