|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CapabilitySetManager
| Method Summary | |
|---|---|
CapabilitySet |
createAgentCapabilitySet(LocalAgentDefinition pipelineDefinition)
Create an agent scope capability set for local agents |
CapabilitySet |
createAgentCapabilitySet(RemoteAgentDefinition pipelineDefinition)
Create an agent scope capability set for remote agents |
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(CapabilitySet agentCapabilitySet,
CapabilitySet sharedCapabilitySet)
Gets a combined "effective" capabilitySet given an agent's capability set and a shared capability set The agent capabilitySet will override capabilities in the CapabilityScope.SHARED capabilities if there's
a precise key match. |
ReadOnlyCapabilitySet |
getCombinedCapabilitySet(long agentId)
Gets the ReadOnlyCapabilitySet for the agent. |
ElasticImageConfiguration |
getElasticImage(CapabilitySet capabilitySet)
|
java.util.Collection<Buildable> |
getExecutableBuildables(ReadOnlyCapabilitySet capabilitySet)
Collection of buildables for which this capability set can meet the requirements of |
java.util.Collection<Build> |
getExecutableBuilds(ReadOnlyCapabilitySet capabilitySet)
Deprecated. since 2.7 use getExecutableBuildables |
PipelineDefinition |
getPipelineDefinition(CapabilitySet capabilitySet)
|
CapabilitySet |
getSharedCapabilitySet(CapabilitySet agentCapabilitySet)
Gets the shared capabilities depending on agentCapability type. |
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. |
java.util.Collection<Capability> |
getSystemCapabilitiesByKey(java.lang.String selectedCapabilityKey)
Collection of Capability which have the specified key |
java.util.Collection<java.lang.String> |
getSystemCapabilityKeys(java.lang.String type,
boolean isElasticEnabled)
Returns a list of Capability Keys that match the given type |
void |
saveCapabilitySet(CapabilitySet capabilitySet)
Saves a capability set |
| Method Detail |
|---|
CapabilitySet getSharedLocalCapabilitySet()
CapabilitySetCapabilitySet getSharedRemoteCapabilitySet()
CapabilitySet
@Nullable
CapabilitySet getSharedCapabilitySet(@NotNull
CapabilitySet agentCapabilitySet)
agentCapabilitySet -
void saveCapabilitySet(@NotNull
CapabilitySet capabilitySet)
capabilitySet -
@NotNull
CapabilitySet createAgentCapabilitySet(@NotNull
LocalAgentDefinition pipelineDefinition)
pipelineDefinition -
@NotNull
CapabilitySet createAgentCapabilitySet(@NotNull
RemoteAgentDefinition pipelineDefinition)
pipelineDefinition -
@NotNull
ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull
CapabilitySet agentCapabilitySet)
CapabilityScope.
The agent capabilitySet will override capabilities in the CapabilityScope.SHARED capabilities if there's
a precise key match.
agentCapabilitySet -
ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull
CapabilitySet agentCapabilitySet,
@Nullable
CapabilitySet sharedCapabilitySet)
CapabilityScope.SHARED capabilities if there's
a precise key match.
agentCapabilitySet - sharedCapabilitySet -
@Nullable ReadOnlyCapabilitySet getCombinedCapabilitySet(long agentId)
ReadOnlyCapabilitySet for the agent.
agentId -
@NotNull
java.util.Collection<java.lang.String> getSystemCapabilityKeys(@NotNull
java.lang.String type,
boolean isElasticEnabled)
type - eg "builder" or "jdk"
@NotNull
java.util.Collection<Capability> getSystemCapabilities(@NotNull
java.lang.String type)
Capability which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs.
type -
@NotNull
java.util.Collection<Capability> getSystemCapabilitiesByKey(@NotNull
java.lang.String selectedCapabilityKey)
Capability which have the specified key
selectedCapabilityKey -
@Deprecated
@NotNull
java.util.Collection<Build> getExecutableBuilds(@NotNull
ReadOnlyCapabilitySet capabilitySet)
capabilitySet -
@NotNull
java.util.Collection<Buildable> getExecutableBuildables(@NotNull
ReadOnlyCapabilitySet capabilitySet)
capabilitySet -
@NotNull java.util.List<java.lang.String> findUniqueCapabilityKeys()
@Nullable
PipelineDefinition getPipelineDefinition(@NotNull
CapabilitySet capabilitySet)
@Nullable
ElasticImageConfiguration getElasticImage(@NotNull
CapabilitySet capabilitySet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||