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

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

public class DefaultAgentCapabilityManagerImpl
extends java.lang.Object
implements DefaultAgentCapabilityManager


Constructor Summary
DefaultAgentCapabilityManagerImpl(ResourceResolver resourceResolver)
           
DefaultAgentCapabilityManagerImpl(java.lang.String propertyFilename, ResourceResolver resourceResolver)
           
 
Method Summary
 CapabilitySet addDefaultCapabilitiesToCapabilitySet(CapabilitySet capabilitySet)
          Adds the default capabilities to the capability set of the agent definition
 boolean isDefaultConfigurationAvailable()
           
 CapabilitySet updateChangedCapabilitiesToCapabilitySet(CapabilitySet capabilitySet)
          Update any changed capabilities (ie keys match).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAgentCapabilityManagerImpl

public DefaultAgentCapabilityManagerImpl(ResourceResolver resourceResolver)

DefaultAgentCapabilityManagerImpl

public DefaultAgentCapabilityManagerImpl(java.lang.String propertyFilename,
                                         ResourceResolver resourceResolver)
Method Detail

addDefaultCapabilitiesToCapabilitySet

public CapabilitySet addDefaultCapabilitiesToCapabilitySet(CapabilitySet capabilitySet)
Description copied from interface: DefaultAgentCapabilityManager
Adds the default capabilities to the capability set of the agent definition

Specified by:
addDefaultCapabilitiesToCapabilitySet in interface DefaultAgentCapabilityManager
Parameters:
capabilitySet - immutable
Returns:
origional capability set plus the default capabilities

updateChangedCapabilitiesToCapabilitySet

public CapabilitySet updateChangedCapabilitiesToCapabilitySet(CapabilitySet capabilitySet)
Description copied from interface: DefaultAgentCapabilityManager
Update any changed capabilities (ie keys match). Will not add a new default capability.

Specified by:
updateChangedCapabilitiesToCapabilitySet in interface DefaultAgentCapabilityManager
Returns:

isDefaultConfigurationAvailable

public boolean isDefaultConfigurationAvailable()
Specified by:
isDefaultConfigurationAvailable in interface DefaultAgentCapabilityManager


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.