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 booleancanStart()Collection<SBuildAgent>getAssociatedAgents()voidstartAgent(StartableAgent.Reason reason)Starts that agentStringtoString()-
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 StartAgentQuotaExceededExceptionDescription copied from interface:StartableAgentStarts that agent- Specified by:
startAgentin 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:
getAssociatedAgentsin classVirtualAgentImpl
-
canStart
public boolean canStart()
- Specified by:
canStartin interfaceStartableAgent- Returns:
- true if this agent can be started
-
-