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
name
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PipelineDefinitionVisitor visitor) Call back method to perform different actions depending on what type of agent it isclone()
long
@NotNull AgentType
getType()
Gets type of the agentgetUuid()
UUID identifying the network agent connects from.void
setCapabilitySet
(CapabilitySet capabilitySet) void
setLastShutdownTime
(@Nullable Date lastShutdownTime) void
setLastStartupTime
(@Nullable Date lastStartupTime) void
void
setUuidAsString
(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, setName
Methods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:PipelineDefinition
Call back method to perform different actions depending on what type of agent it is- Specified by:
accept
in interfacePipelineDefinition
- Parameters:
visitor
- Visitor object
-
clone
- Overrides:
clone
in classcom.atlassian.core.bean.EntityObject
- Throws:
CloneNotSupportedException
-
getCapabilitySet
- Specified by:
getCapabilitySet
in interfaceCapabilityProperties
-
setCapabilitySet
- Specified by:
setCapabilitySet
in interfaceCapabilityProperties
-
getLastShutdownTime
- Specified by:
getLastShutdownTime
in interfaceDistributedProperties
-
getLastStartupTime
- Specified by:
getLastStartupTime
in interfaceDistributedProperties
-
setLastShutdownTime
- Specified by:
setLastShutdownTime
in interfaceDistributedProperties
-
setLastStartupTime
- Specified by:
setLastStartupTime
in interfaceDistributedProperties
-
getAgentUpTime
public long getAgentUpTime()- Specified by:
getAgentUpTime
in interfaceDistributedProperties
-
getUuid
Description copied from interface:RemoteAgentDefinition
UUID identifying the network agent connects from. Used by agent authentication feature.- Specified by:
getUuid
in interfaceRemoteAgentDefinition
-
setUuid
- Specified by:
setUuid
in interfaceRemoteAgentDefinition
-
getUuidAsString
-
setUuidAsString
-
getType
Description copied from interface:PipelineDefinition
Gets type of the agent- Specified by:
getType
in interfacePipelineDefinition
- Specified by:
getType
in classPipelineDefinitionImpl
- Returns:
- Type of the agent
-
toString
-