Class ProcFilesRetriever
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.api.ObjectComponent<Computer>
com.cloudbees.jenkins.support.impl.ProcFilesRetriever
- All Implemented Interfaces:
 ExtensionPoint,Describable<ObjectComponent<Computer>>
- Direct Known Subclasses:
 AdvancedProcFilesRetriever
Base class for gathering specified /proc files
- 
Nested Class Summary
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 TypeMethodDescriptionvoidaddContents(Container container) Add contents to a containervoidaddContents(Container container, Computer item) Add contents from a specific item to a containerprotected voidaddUnixContents(Container container, Node node) protected voidafterAddUnixContents(Container container, Node node, String name) Override this method if you want to hook some code afteraddUnixContents(Container, Node).Specify in whichComponent.ComponentCategorythe current component is related.Returns the map of files that should be retrieved.protected static StringgetNodeName(Node node) getNodes()Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.getSystemPlatform(Node node) <C extends AbstractModelObject>
booleanisApplicable(Class<C> clazz) Return if this component is applicable to a specific class of item.Methods 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
- 
ProcFilesRetriever
public ProcFilesRetriever() 
 - 
 - 
Method Details
- 
getNodeName
 - 
getFilesToRetrieve
Returns the map of files that should be retrieved.file name => path in the support bundle.For example
/proc/meminfo => meminfo.txt.- Returns:
 - the map of files that should be retrieved and put in the support bundle.
 
 - 
getNodes
 - 
getRequiredPermissions
Description copied from class:ComponentReturns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle. An empty list indicates that any user can include this bundle.- Specified by:
 getRequiredPermissionsin classComponent- Returns:
 - the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
 
 - 
addContents
Description copied from class:ObjectComponentAdd contents to a container- Overrides:
 addContentsin classObjectComponent<Computer>- Parameters:
 container- aContainer
 - 
addContents
Description copied from class:ObjectComponentAdd contents from a specific item to a container- Specified by:
 addContentsin classObjectComponent<Computer>- Parameters:
 container- theContaineritem- the item
 - 
getCategory
Description copied from class:ComponentSpecify in whichComponent.ComponentCategorythe current component is related.- Overrides:
 getCategoryin classComponent- Returns:
 - An enum value of 
Component.ComponentCategory. 
 - 
addUnixContents
 - 
afterAddUnixContents
Override this method if you want to hook some code afteraddUnixContents(Container, Node).- Parameters:
 container- the supportContainer.node- the node for which the method is called.name- the node name, "master" if Controller, and slave/${nodeName} if an agent.
 - 
getSystemPlatform
 - 
isApplicable
Description copied from class:ObjectComponentReturn if this component is applicable to a specific class of item.- Overrides:
 isApplicablein classObjectComponent<Computer>- Type Parameters:
 C- Object that extendsAbstractModelObject- Parameters:
 clazz- the class- Returns:
 trueif applicable to this class
 
 -