Class AbstractFileCapabilityDefaultsHelper
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractFileCapabilityDefaultsHelper
-
- All Implemented Interfaces:
BambooPluginModule
,CapabilityDefaultsHelper
- Direct Known Subclasses:
AbstractHomeDirectoryCapabilityDefaultsHelper
,AbstractPhpUnitCapabilityDefaultsHelper
public abstract class AbstractFileCapabilityDefaultsHelper extends Object implements CapabilityDefaultsHelper
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_AGENT_ENVIRONMENT_PREFIX, CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
-
-
Constructor Summary
Constructors Constructor Description AbstractFileCapabilityDefaultsHelper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull CapabilitySet
addDefaultCapabilities(@NotNull CapabilitySet capabilitySet)
Adds default Capabilities for this module.protected @Nullable Capability
createCapability(@NotNull File content)
protected abstract @NotNull String
getCapabilityKey()
protected @Nullable String
getEnvHome()
protected abstract @NotNull String
getExecutableName()
protected @Nullable String
getPosixHome()
Deprecated.since 6.5 usegetPosixHomes()
protected @NotNull List<String>
getPosixHomes()
protected @Nullable com.google.common.base.Predicate<File>
getValidityPredicate()
-
-
-
Method Detail
-
addDefaultCapabilities
@NotNull public @NotNull CapabilitySet addDefaultCapabilities(@NotNull @NotNull CapabilitySet capabilitySet)
Description copied from interface:CapabilityDefaultsHelper
Adds default Capabilities for this module. Used during auto-detecting server capabilities.- Specified by:
addDefaultCapabilities
in interfaceCapabilityDefaultsHelper
- Parameters:
capabilitySet
- to add the capability to- Returns:
- the supplied capabilitySet with the new capabilities included if found, else the given capabilitySet
-
createCapability
@Nullable protected @Nullable Capability createCapability(@NotNull @NotNull File content)
-
getExecutableName
@NotNull protected abstract @NotNull String getExecutableName()
-
getCapabilityKey
@NotNull protected abstract @NotNull String getCapabilityKey()
-
getEnvHome
@Nullable protected @Nullable String getEnvHome()
-
getPosixHome
@Deprecated @Nullable protected @Nullable String getPosixHome()
Deprecated.since 6.5 usegetPosixHomes()
-
getValidityPredicate
@Nullable protected @Nullable com.google.common.base.Predicate<File> getValidityPredicate()
-
-