com.atlassian.bamboo.v2.build.agent.capability
Interface CapabilitySetManager

All Known Implementing Classes:
CapabilitySetManagerImpl

public interface CapabilitySetManager


Method Summary
 CapabilitySet createAgentCapabilitySet(PipelineDefinition pipelineDefinition)
          Create an agent scope capability set
 java.util.List<java.lang.String> findUniqueCapabilityKeys()
          Finds all the distinct capability keys
 ReadOnlyCapabilitySet getCombinedCapabilitySet(CapabilitySet agentCapabilitySet)
          Gets a combined "effective" capabilitySet given an agent's capabilitySet.
 ReadOnlyCapabilitySet getCombinedCapabilitySet(long agentId)
          Gets the ReadOnlyCapabilitySet for the agent.
 java.util.Collection<Build> getExecutableBuilds(ReadOnlyCapabilitySet capabilitySet)
          Collection of builds for which this capability set can meet the requirements of
 PipelineDefinition getPipelineDefinition(CapabilitySet capabilitySet)
           
 CapabilitySet getSharedLocalCapabilitySet()
          Gets the locally shared capabilities
 CapabilitySet getSharedRemoteCapabilitySet()
          Gets the remotely shared capabilities
 java.util.Collection<Capability> getSystemCapabilities(java.lang.String type)
          Collection of Capability which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.
 void saveCapabilitySet(CapabilitySet capabilitySet)
          Saves a capability set
 

Method Detail

getSharedLocalCapabilitySet

CapabilitySet getSharedLocalCapabilitySet()
Gets the locally shared capabilities

Returns:
CapabilitySet

getSharedRemoteCapabilitySet

CapabilitySet getSharedRemoteCapabilitySet()
Gets the remotely shared capabilities

Returns:
CapabilitySet

saveCapabilitySet

void saveCapabilitySet(@NotNull
                       CapabilitySet capabilitySet)
Saves a capability set

Parameters:
capabilitySet -

createAgentCapabilitySet

@NotNull
CapabilitySet createAgentCapabilitySet(@NotNull
                                               PipelineDefinition pipelineDefinition)
Create an agent scope capability set

Parameters:
pipelineDefinition -
Returns:

getCombinedCapabilitySet

@NotNull
ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull
                                                       CapabilitySet agentCapabilitySet)
Gets a combined "effective" capabilitySet given an agent's capabilitySet. Will retireve the shared capabilitySet for the agent based on the CapabilityScope. The agent capabilitySet will override capabilities in the CapabilityScope.SHARED capabilities if there's a precise key match.

Parameters:
agentCapabilitySet -
Returns:

getCombinedCapabilitySet

@Nullable
ReadOnlyCapabilitySet getCombinedCapabilitySet(long agentId)
Gets the ReadOnlyCapabilitySet for the agent.

Parameters:
agentId -
Returns:

getSystemCapabilities

@NotNull
java.util.Collection<Capability> getSystemCapabilities(@NotNull
                                                               java.lang.String type)
Collection of Capability which have keys prefixed with system.{type} Used to identify Bamboo system capabilities for Builders / JDKs.

Parameters:
type -
Returns:

getExecutableBuilds

@NotNull
java.util.Collection<Build> getExecutableBuilds(@NotNull
                                                        ReadOnlyCapabilitySet capabilitySet)
Collection of builds for which this capability set can meet the requirements of

Parameters:
capabilitySet -
Returns:

findUniqueCapabilityKeys

@NotNull
java.util.List<java.lang.String> findUniqueCapabilityKeys()
Finds all the distinct capability keys

Returns:

getPipelineDefinition

@Nullable
PipelineDefinition getPipelineDefinition(@NotNull
                                                  CapabilitySet capabilitySet)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.