com.atlassian.bamboo.v2.build.agent.capability
Class CombinedReadOnlyCapabilitySet

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.CombinedReadOnlyCapabilitySet
All Implemented Interfaces:
ReadOnlyCapabilitySet

public class CombinedReadOnlyCapabilitySet
extends java.lang.Object
implements ReadOnlyCapabilitySet

A combined "effective" capability set for an agent. Combines the CapabilityScope.AGENT's CapabilitySetImpl with it's CapabilityScope.SHARED CapabilitySetImpl. The agent's capabilities will override the shared capabilities.


Constructor Summary
CombinedReadOnlyCapabilitySet(CapabilitySet agentCapabilitySet, CapabilitySet sharedCapabilitySet)
           
 
Method Summary
 java.util.Set<Capability> getCapabilities()
          Get all the capabilities as a set
 Capability getCapability(java.lang.String key)
          Get the capability with the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedReadOnlyCapabilitySet

public CombinedReadOnlyCapabilitySet(@NotNull
                                     CapabilitySet agentCapabilitySet,
                                     @NotNull
                                     CapabilitySet sharedCapabilitySet)
Method Detail

getCapability

@Nullable
public Capability getCapability(@NotNull
                                         java.lang.String key)
Description copied from interface: ReadOnlyCapabilitySet
Get the capability with the given key

Specified by:
getCapability in interface ReadOnlyCapabilitySet
Returns:

getCapabilities

@NotNull
public java.util.Set<Capability> getCapabilities()
Description copied from interface: ReadOnlyCapabilitySet
Get all the capabilities as a set

Specified by:
getCapabilities in interface ReadOnlyCapabilitySet
Returns:


Copyright © 2011 Atlassian. All Rights Reserved.