Class ProcFilesRetriever

    • Constructor Detail

      • ProcFilesRetriever

        public ProcFilesRetriever()
    • Method Detail

      • getNodeName

        protected static String getNodeName​(Node node)
      • getFilesToRetrieve

        public abstract Map<String,​String> 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

        protected List<Node> getNodes()
      • getRequiredPermissions

        @NonNull
        public Set<Permission> getRequiredPermissions()
        Description copied from class: Component
        Returns 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:
        getRequiredPermissions in class Component
        Returns:
        the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
      • addUnixContents

        protected void addUnixContents​(@NonNull
                                       Container container,
                                       @NonNull
                                       Node node)
      • afterAddUnixContents

        protected void afterAddUnixContents​(@NonNull
                                            Container container,
                                            @NonNull
                                            Node node,
                                            String name)
        Override this method if you want to hook some code after addUnixContents(Container, Node).
        Parameters:
        container - the support Container.
        node - the node for which the method is called.
        name - the node name, "master" if Controller, and slave/${nodeName} if an agent.