|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.agent.BuildAgentImpl
public class BuildAgentImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.agent.BuildAgent |
---|
BuildAgent.BuildAgentVisitor |
Constructor Summary | |
---|---|
protected |
BuildAgentImpl(LocalAgentDefinition definition)
|
|
BuildAgentImpl(PipelineDefinition definition,
AgentStatus agentStatus)
|
Method Summary | |
---|---|
void |
accept(BuildAgent.BuildAgentVisitor buildAgentVisitor)
Runs the appropriate visitor method depending on which type of agent it is |
int |
compareTo(BuildAgent o)
|
boolean |
equals(java.lang.Object o)
|
AgentStatus |
getAgentStatus()
|
PipelineDefinition |
getDefinition()
|
long |
getId()
|
java.util.Date |
getLastUpdated()
|
java.lang.String |
getName()
|
java.util.Date |
getRemoteTimestamp()
|
SystemInfo |
getSystemInfo()
Gets the system info, which may be null if not yet initialized. |
java.util.UUID |
getUuid()
Get UUID of this agent |
int |
hashCode()
|
boolean |
hasSystemInfo()
Checks whether system info for this agent has been initialized. |
boolean |
hasUuid()
Check whether this agent has already been assigned its UUID |
boolean |
isActive()
|
boolean |
isBusy()
Returns true if an agent is building or is cancelling a build |
boolean |
isEnabled()
|
boolean |
isRequestedToBeStopped()
Whether or not a call has been made to shutdown the agent after the current build has finished |
boolean |
isUnresponsive()
Whether or not the agent has been deemed to be "unresponsive". |
void |
setAgentStatus(AgentStatus newAgentStatus)
|
void |
setDefinition(PipelineDefinition definition)
|
void |
setLastUpdated(java.util.Date lastUpdated)
|
void |
setRemoteTimestamp(java.util.Date remoteTimestamp)
|
void |
setRequestedToBeStopped(boolean requestedToBeStopped)
|
void |
setSystemInfo(SystemInfo systemInfo)
|
void |
setUnresponsive(boolean unresponsive)
|
void |
setUuid(java.util.UUID uuid)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BuildAgentImpl(@NotNull PipelineDefinition definition, @NotNull AgentStatus agentStatus)
protected BuildAgentImpl(LocalAgentDefinition definition)
Method Detail |
---|
public long getId()
getId
in interface BuildAgent
public java.lang.String getName()
getName
in interface NameProvider
getName
in interface BuildAgent
public boolean isActive()
isActive
in interface BuildAgent
public boolean isEnabled()
isEnabled
in interface BuildAgent
@NotNull public AgentStatus getAgentStatus()
getAgentStatus
in interface BuildAgent
public boolean isUnresponsive()
BuildAgent
isUnresponsive
in interface BuildAgent
public void setUnresponsive(boolean unresponsive)
setUnresponsive
in interface BuildAgent
public void setAgentStatus(@NotNull AgentStatus newAgentStatus)
public boolean isBusy()
BuildAgent
isBusy
in interface BuildAgent
public java.util.Date getLastUpdated()
public void setLastUpdated(java.util.Date lastUpdated)
@Nullable public java.util.Date getRemoteTimestamp()
public void setRemoteTimestamp(java.util.Date remoteTimestamp)
@Nullable public SystemInfo getSystemInfo()
HasSystemInfo
null
if not yet initialized.
getSystemInfo
in interface HasSystemInfo
public boolean hasSystemInfo()
HasSystemInfo
true
, HasSystemInfo.getSystemInfo()
will always return non-null
value
hasSystemInfo
in interface HasSystemInfo
true
, if this agent has system infopublic void setSystemInfo(SystemInfo systemInfo)
public boolean isRequestedToBeStopped()
BuildAgent
isRequestedToBeStopped
in interface BuildAgent
public void setRequestedToBeStopped(boolean requestedToBeStopped)
setRequestedToBeStopped
in interface BuildAgent
@NotNull public PipelineDefinition getDefinition()
getDefinition
in interface BuildAgent
public void setDefinition(@NotNull PipelineDefinition definition)
setDefinition
in interface BuildAgent
public void accept(BuildAgent.BuildAgentVisitor buildAgentVisitor)
BuildAgent
accept
in interface BuildAgent
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(BuildAgent o)
compareTo
in interface java.lang.Comparable<BuildAgent>
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.UUID getUuid()
HasUuid
getUuid
in interface HasUuid
public void setUuid(java.util.UUID uuid)
public boolean hasUuid()
HasUuid
hasUuid
in interface HasUuid
true
, if this agent already has unique ID assigned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |