|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.agent.capability.CapabilitySetManagerImpl
public class CapabilitySetManagerImpl
Constructor Summary | |
---|---|
CapabilitySetManagerImpl()
|
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<Build> |
getExecutableBuilds(ReadOnlyCapabilitySet capabilitySet)
Collection of builds for which this capability set can meet the requirements of |
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 key)
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 |
void |
setAgentDao(AgentDao agentDao)
|
void |
setBuildManager(BuildManager buildManager)
|
void |
setCapabilityRequirementsMatcher(CapabilityRequirementsMatcher capabilityRequirementsMatcher)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setImageCapabilityDao(ImageCapabilitySetDao imageCapabilityDao)
|
void |
setLocalCapabilityDao(LocalCapabilitySetDao localCapabilityDao)
|
void |
setRemoteCapabilityDao(RemoteCapabilitySetDao remoteCapabilityDao)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapabilitySetManagerImpl()
Method Detail |
---|
public CapabilitySet getSharedLocalCapabilitySet()
CapabilitySetManager
getSharedLocalCapabilitySet
in interface CapabilitySetManager
CapabilitySet
public CapabilitySet getSharedRemoteCapabilitySet()
CapabilitySetManager
getSharedRemoteCapabilitySet
in interface CapabilitySetManager
CapabilitySet
@Nullable public CapabilitySet getSharedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet)
CapabilitySetManager
getSharedCapabilitySet
in interface CapabilitySetManager
@Nullable public PipelineDefinition getPipelineDefinition(@NotNull CapabilitySet capabilitySet)
getPipelineDefinition
in interface CapabilitySetManager
@Nullable public ElasticImageConfiguration getElasticImage(@NotNull CapabilitySet capabilitySet)
getElasticImage
in interface CapabilitySetManager
@NotNull public ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet)
CapabilitySetManager
CapabilityScope
.
The agent capabilitySet will override capabilities in the CapabilityScope.SHARED
capabilities if there's
a precise key match.
getCombinedCapabilitySet
in interface CapabilitySetManager
public ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet, @Nullable CapabilitySet sharedCapabilitySet)
CapabilitySetManager
CapabilityScope.SHARED
capabilities if there's
a precise key match.
getCombinedCapabilitySet
in interface CapabilitySetManager
@Nullable public ReadOnlyCapabilitySet getCombinedCapabilitySet(long agentId)
CapabilitySetManager
ReadOnlyCapabilitySet
for the agent.
getCombinedCapabilitySet
in interface CapabilitySetManager
@NotNull public CapabilitySet createAgentCapabilitySet(@NotNull LocalAgentDefinition pipelineDefinition)
CapabilitySetManager
createAgentCapabilitySet
in interface CapabilitySetManager
@NotNull public CapabilitySet createAgentCapabilitySet(@NotNull RemoteAgentDefinition pipelineDefinition)
CapabilitySetManager
createAgentCapabilitySet
in interface CapabilitySetManager
public void saveCapabilitySet(@NotNull CapabilitySet capabilitySet)
CapabilitySetManager
saveCapabilitySet
in interface CapabilitySetManager
@NotNull public java.util.Collection<java.lang.String> getSystemCapabilityKeys(@NotNull java.lang.String type, boolean isElasticEnabled)
CapabilitySetManager
getSystemCapabilityKeys
in interface CapabilitySetManager
type
- eg "builder" or "jdk"
@NotNull public java.util.Collection<Capability> getSystemCapabilities(@NotNull java.lang.String type)
CapabilitySetManager
Capability
which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs.
getSystemCapabilities
in interface CapabilitySetManager
@NotNull public java.util.Collection<Capability> getSystemCapabilitiesByKey(@NotNull java.lang.String key)
CapabilitySetManager
Capability
which have the specified key
getSystemCapabilitiesByKey
in interface CapabilitySetManager
@NotNull public java.util.Collection<Build> getExecutableBuilds(@Nullable ReadOnlyCapabilitySet capabilitySet)
CapabilitySetManager
getExecutableBuilds
in interface CapabilitySetManager
@NotNull public java.util.List<java.lang.String> findUniqueCapabilityKeys()
CapabilitySetManager
findUniqueCapabilityKeys
in interface CapabilitySetManager
public void setLocalCapabilityDao(LocalCapabilitySetDao localCapabilityDao)
public void setRemoteCapabilityDao(RemoteCapabilitySetDao remoteCapabilityDao)
public void setImageCapabilityDao(ImageCapabilitySetDao imageCapabilityDao)
public void setBuildManager(BuildManager buildManager)
public void setCapabilityRequirementsMatcher(CapabilityRequirementsMatcher capabilityRequirementsMatcher)
public void setEventManager(com.atlassian.event.EventManager eventManager)
public void setAgentDao(AgentDao agentDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |