public interface

CapabilitySet

implements BambooObject ReadOnlyCapabilitySet
com.atlassian.bamboo.v2.build.agent.capability.CapabilitySet
Known Indirect Subclasses

Summary

Public Methods
void addCapability(Capability capability)
Add a capability to the set.
void addCapability(Capability capability, boolean overwrite)
Adds a capability.
@NotNull CapabilityScope getCapabilityScope()
The scope of the capability set.
@Nullable String getCapabilitySetType()
Returns the identifier describing the type of this capability.
@Nullable String getSharedCapabilitySetType()
Returns the identifier for the set if it is shared.
void removeCapability(String key)
Remove a capability from the set, by the key.
void setCapabilities(Set<Capability> capabilities)
[Expand]
Inherited Methods
From interface com.atlassian.bamboo.core.BambooIdProvider
From interface com.atlassian.bamboo.core.BambooObject
From interface com.atlassian.bamboo.v2.build.agent.capability.ReadOnlyCapabilitySet

Public Methods

public void addCapability (Capability capability)

Add a capability to the set. Will overwrite any existing capability key

public void addCapability (Capability capability, boolean overwrite)

Adds a capability. If overwrite is false the new value will be rejected

@NotNull public CapabilityScope getCapabilityScope ()

The scope of the capability set. Can either be CapabilityScope.AGENT - only applies to one agent. or CapabilityScope.SHARED - shared across all local, or all remote agents.

Returns

@Nullable public String getCapabilitySetType ()

Returns the identifier describing the type of this capability.

Returns
  • "Local", "Remote" or "Image"

@Nullable public String getSharedCapabilitySetType ()

Returns the identifier for the set if it is shared. Pretty used exclusively in the UI.

Returns
  • "Local", "Remote" or null it not a shared capability type;

public void removeCapability (String key)

Remove a capability from the set, by the key.

public void setCapabilities (Set<Capability> capabilities)