Class VirtualAgentImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.virtual.VirtualAgentImpl
-
- All Implemented Interfaces:
VirtualAgent
- Direct Known Subclasses:
RunningVirtualAgent
,StartableAgentImpl
public abstract class VirtualAgentImpl extends Object implements VirtualAgent
- Author:
- Eugene Petrenko Created: 17.09.2009 0:22:59
-
-
Constructor Summary
Constructors Constructor Description VirtualAgentImpl(StartableAgentTypeImpl parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SAgentType
getAgentType()
abstract Collection<SBuildAgent>
getAssociatedAgents()
StartableAgentTypeImpl
getStartableAgentType()
boolean
hasConnectedAgents()
boolean
hasRunningBuilds()
boolean
isDisabled()
-
-
-
Constructor Detail
-
VirtualAgentImpl
public VirtualAgentImpl(@NotNull StartableAgentTypeImpl parent)
-
-
Method Detail
-
getStartableAgentType
@NotNull public StartableAgentTypeImpl getStartableAgentType()
- Specified by:
getStartableAgentType
in interfaceVirtualAgent
- Returns:
- SratableAgentType for this agent
-
getAgentType
@Nullable public SAgentType getAgentType()
- Specified by:
getAgentType
in interfaceVirtualAgent
- Returns:
- agent description for this reference
-
getAssociatedAgents
@NotNull public abstract Collection<SBuildAgent> getAssociatedAgents()
-
hasRunningBuilds
public boolean hasRunningBuilds()
- Specified by:
hasRunningBuilds
in interfaceVirtualAgent
- Returns:
- true if all associated agents has running builds
-
hasConnectedAgents
public boolean hasConnectedAgents()
- Specified by:
hasConnectedAgents
in interfaceVirtualAgent
- Returns:
- true if all associated agents are up-to-date and connected
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceVirtualAgent
- Returns:
- true if this agent was explicitly disabled, so should not be calculated towards running cloud instances
-
-