Class StartableAgentImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.virtual.VirtualAgentImpl
-
- jetbrains.buildServer.clouds.server.impl.virtual.StartableAgentImpl
-
- All Implemented Interfaces:
StartableAgent
,VirtualAgent
public class StartableAgentImpl extends VirtualAgentImpl implements StartableAgent
- Author:
- Eugene Petrenko Created: 17.09.2009 0:24:09
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.impl.virtualAgent.StartableAgent
StartableAgent.Reason
-
-
Constructor Summary
Constructors Constructor Description StartableAgentImpl(StartableAgentTypeImpl parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canStart()
Collection<SBuildAgent>
getAssociatedAgents()
void
startAgent(StartableAgent.Reason reason)
Starts that agentString
toString()
-
Methods inherited from class jetbrains.buildServer.clouds.server.impl.virtual.VirtualAgentImpl
getAgentType, getStartableAgentType, hasConnectedAgents, hasRunningBuilds, isDisabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.impl.virtualAgent.VirtualAgent
getAgentType, getStartableAgentType, hasConnectedAgents, hasRunningBuilds, isDisabled
-
-
-
-
Constructor Detail
-
StartableAgentImpl
public StartableAgentImpl(@NotNull StartableAgentTypeImpl parent)
-
-
Method Detail
-
startAgent
public void startAgent(@NotNull StartableAgent.Reason reason) throws StartAgentQuotaExceededException
Description copied from interface:StartableAgent
Starts that agent- Specified by:
startAgent
in interfaceStartableAgent
- Parameters:
reason
- reason of starting the instance- Throws:
StartAgentQuotaExceededException
- if start is not allowed due to the quota
-
getAssociatedAgents
@NotNull public Collection<SBuildAgent> getAssociatedAgents()
- Specified by:
getAssociatedAgents
in classVirtualAgentImpl
-
canStart
public boolean canStart()
- Specified by:
canStart
in interfaceStartableAgent
- Returns:
- true if this agent can be started
-
-