Class SlaveLaunchLogs
- java.lang.Object
-
- com.cloudbees.jenkins.support.api.Component
-
- com.cloudbees.jenkins.support.api.ObjectComponent<Computer>
-
- com.cloudbees.jenkins.support.impl.SlaveLaunchLogs
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ObjectComponent<Computer>>
@Extension public class SlaveLaunchLogs extends ObjectComponent<Computer>
Adds agent launch logs, which captures the current and past running connections to the agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SlaveLaunchLogs.DescriptorImpl
-
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
Constructors Constructor Description SlaveLaunchLogs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContents(Container container)
Add contents to a containervoid
addContents(Container container, Computer item)
Add contents from a specific item to a containerComponent.ComponentCategory
getCategory()
Specify in whichComponent.ComponentCategory
the current component is related.SlaveLaunchLogs.DescriptorImpl
getDescriptor()
String
getDisplayName()
Set<Permission>
getRequiredPermissions()
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.boolean
isApplicable(Computer item)
Return if this component is applicable to a specific item.<C extends AbstractModelObject>
booleanisApplicable(Class<C> clazz)
Return if this component is applicable to a specific class of item.boolean
isSelectedByDefault()
boolean
isSelectedByDefault(Computer item)
Control if the component should be selected by default, based on the applicable item-
Methods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
allInstances, for_
-
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getDisplayPermissions, getId, isEnabled, start
-
-
-
-
Method Detail
-
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 classComponent
- Returns:
- the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
-
getDisplayName
@NonNull public String getDisplayName()
- Specified by:
getDisplayName
in classComponent
-
addContents
public void addContents(@NonNull Container container)
Description copied from class:ObjectComponent
Add contents to a container- Overrides:
addContents
in classObjectComponent<Computer>
- Parameters:
container
- aContainer
-
getCategory
@NonNull public Component.ComponentCategory 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
.
-
addContents
public void addContents(@NonNull Container container, Computer item)
Description copied from class:ObjectComponent
Add contents from a specific item to a container- Specified by:
addContents
in classObjectComponent<Computer>
- Parameters:
container
- theContainer
item
- the item
-
isSelectedByDefault
public boolean isSelectedByDefault()
- Overrides:
isSelectedByDefault
in classComponent
-
isSelectedByDefault
public boolean isSelectedByDefault(Computer item)
Description copied from class:ObjectComponent
Control if the component should be selected by default, based on the applicable item- Overrides:
isSelectedByDefault
in classObjectComponent<Computer>
- Parameters:
item
- the item- Returns:
- true to select the component by default
-
isApplicable
public <C extends AbstractModelObject> boolean isApplicable(Class<C> clazz)
Description copied from class:ObjectComponent
Return if this component is applicable to a specific class of item.- Overrides:
isApplicable
in classObjectComponent<Computer>
- Type Parameters:
C
- Object that extendsAbstractModelObject
- Parameters:
clazz
- the class- Returns:
true
if applicable to this class
-
isApplicable
public boolean isApplicable(Computer item)
Description copied from class:ObjectComponent
Return if this component is applicable to a specific item.- Overrides:
isApplicable
in classObjectComponent<Computer>
- Parameters:
item
- the item- Returns:
- true if applicable
-
getDescriptor
public SlaveLaunchLogs.DescriptorImpl getDescriptor()
Description copied from class:ObjectComponent
- Specified by:
getDescriptor
in interfaceDescribable<ObjectComponent<Computer>>
- Overrides:
getDescriptor
in classObjectComponent<Computer>
-
-