com.atlassian.bamboo.v2.build.agent
Class AgentWithCapabilitiesDefinitionImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
              extended by com.atlassian.bamboo.v2.build.agent.AgentWithCapabilitiesDefinitionImpl
All Implemented Interfaces:
AgentWithCapabilitiesDefinition, PipelineDefinition, BambooIdProvider, BambooObject, java.lang.Cloneable, java.lang.Comparable

public abstract class AgentWithCapabilitiesDefinitionImpl
extends PipelineDefinitionImpl
implements AgentWithCapabilitiesDefinition


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
PipelineDefinition.TYPE
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
name
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
protected AgentWithCapabilitiesDefinitionImpl()
           
protected AgentWithCapabilitiesDefinitionImpl(long id, java.lang.String name)
           
 
Method Summary
 CapabilitySet getAgentCapabilitySet()
           
 CapabilitySet getCapabilitySet()
          Will only return what is stored in the database against this agent.
protected abstract  CapabilitySet newCapabilitySet()
           
 void setCapabilitySet(CapabilitySet capabilitySet)
           
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
compareTo, equals, getDescription, getName, getType, hashCode, isEnabled, setDescription, setEnabled, setName
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
accept, getCreationDate, getDescription, getLastModificationDate, getName, getType, isEnabled, setCreationDate, setDescription, setEnabled, setLastModificationDate, setName
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AgentWithCapabilitiesDefinitionImpl

protected AgentWithCapabilitiesDefinitionImpl()

AgentWithCapabilitiesDefinitionImpl

protected AgentWithCapabilitiesDefinitionImpl(long id,
                                              java.lang.String name)
Method Detail

getCapabilitySet

@Nullable
public CapabilitySet getCapabilitySet()
Will only return what is stored in the database against this agent. This is not necessarily the complete capability set for the Pipeline. Use {#getAgentCapabilitySet} instead

Specified by:
getCapabilitySet in interface AgentWithCapabilitiesDefinition
Returns:
capablity set stored against this agent.

getAgentCapabilitySet

@NotNull
public CapabilitySet getAgentCapabilitySet()
Specified by:
getAgentCapabilitySet in interface AgentWithCapabilitiesDefinition

newCapabilitySet

protected abstract CapabilitySet newCapabilitySet()

setCapabilitySet

public void setCapabilitySet(CapabilitySet capabilitySet)
Specified by:
setCapabilitySet in interface AgentWithCapabilitiesDefinition


Copyright © 2012 Atlassian. All Rights Reserved.