Class GCLogs
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.impl.GCLogs
- All Implemented Interfaces:
ExtensionPoint
GC Logs Retriever.
Introspects the running VM for -Xloggc:blah.log
option and so on to propose including those if
found
NOTE: currently only tested on OpenJDK / HotSpot.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Isolated code to make it testableNested 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 TypeMethodDescriptionvoid
addContents
(Container result) Add contents to a containerSpecify in whichComponent.ComponentCategory
the current component is related.Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.boolean
isFileLocationParameterized
(String fileLocation) boolean
boolean
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getDisplayPermissions, getId, isApplicable, isEnabled, start
-
Constructor Details
-
GCLogs
public GCLogs()
-
-
Method Details
-
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 classComponent
- Returns:
- the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
-
getDisplayName
- Specified by:
getDisplayName
in classComponent
-
addContents
Description copied from class:Component
Add contents to a container- Specified by:
addContents
in classComponent
- Parameters:
result
- aContainer
-
isSelectedByDefault
public boolean isSelectedByDefault()- Overrides:
isSelectedByDefault
in classComponent
-
getCategory
Description copied from class:Component
Specify in whichComponent.ComponentCategory
the current component is related.- Overrides:
getCategory
in classComponent
- Returns:
- An enum value of
Component.ComponentCategory
.
-
getGcLogFileLocation
-
isFileLocationParameterized
-
isGcLogRotationConfigured
public boolean isGcLogRotationConfigured()
-