Class RemoteAgentDefinitionImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
com.atlassian.bamboo.v2.build.agent.RemoteAgentDefinitionImpl
- All Implemented Interfaces:
PipelineDefinition,CapabilityProperties,DistributedProperties,RemoteAgentDefinition,BambooIdProvider,BambooObject,CreationDateProvider,Serializable,Cloneable,Comparable<PipelineDefinition>
@Entity
public class RemoteAgentDefinitionImpl
extends PipelineDefinitionImpl
implements RemoteAgentDefinition
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
nameFields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(PipelineDefinitionVisitor visitor) Call back method to perform different actions depending on what type of agent it isclone()long@NotNull AgentTypegetType()Gets type of the agentgetUuid()UUID identifying the network agent connects from.voidsetCapabilitySet(CapabilitySet capabilitySet) voidsetLastShutdownTime(@Nullable Date lastShutdownTime) voidsetLastStartupTime(@Nullable Date lastStartupTime) voidvoidsetUuidAsString(String uuidAsString) toString()Methods inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
compareTo, equals, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getName, hashCode, isDedicated, isEnabled, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setNameMethods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
getCreationDate, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getLastModificationDate, getName, isDedicated, isEnabled, setCreationDate, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setLastModificationDate, setName
-
Constructor Details
-
RemoteAgentDefinitionImpl
public RemoteAgentDefinitionImpl() -
RemoteAgentDefinitionImpl
-
-
Method Details
-
accept
Description copied from interface:PipelineDefinitionCall back method to perform different actions depending on what type of agent it is- Specified by:
acceptin interfacePipelineDefinition- Parameters:
visitor- Visitor object
-
clone
- Overrides:
clonein classcom.atlassian.core.bean.EntityObject- Throws:
CloneNotSupportedException
-
getCapabilitySet
- Specified by:
getCapabilitySetin interfaceCapabilityProperties
-
setCapabilitySet
- Specified by:
setCapabilitySetin interfaceCapabilityProperties
-
getLastShutdownTime
- Specified by:
getLastShutdownTimein interfaceDistributedProperties
-
getLastStartupTime
- Specified by:
getLastStartupTimein interfaceDistributedProperties
-
setLastShutdownTime
- Specified by:
setLastShutdownTimein interfaceDistributedProperties
-
setLastStartupTime
- Specified by:
setLastStartupTimein interfaceDistributedProperties
-
getAgentUpTime
public long getAgentUpTime()- Specified by:
getAgentUpTimein interfaceDistributedProperties
-
getUuid
Description copied from interface:RemoteAgentDefinitionUUID identifying the network agent connects from. Used by agent authentication feature.- Specified by:
getUuidin interfaceRemoteAgentDefinition
-
setUuid
- Specified by:
setUuidin interfaceRemoteAgentDefinition
-
getUuidAsString
-
setUuidAsString
-
getType
Description copied from interface:PipelineDefinitionGets type of the agent- Specified by:
getTypein interfacePipelineDefinition- Specified by:
getTypein classPipelineDefinitionImpl- Returns:
- Type of the agent
-
toString
-