Class AgentPoolImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentPools.AgentPoolImpl
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.agentPools.AgentPool
DEFAULT_POOL_ID, DEFAULT_POOL_NAME, PROJECT_POOL_PLACEHOLDER, UNASSIGNED_POOL_PLACEHOLDER
-
Fields inherited from interface jetbrains.buildServer.serverSide.agentPools.AgentPoolLimits
DEFAULT, UNLIMITED
-
-
Constructor Summary
Constructors Constructor Description AgentPoolImpl(int id, String name, AgentPoolManager agentPoolManager, ProjectManagerEx projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsProjectId(String projectId)indicates whether current pools contain this projectId.Stringdescribe(boolean verbose)booleanequals(Object o)intgetAgentPoolId()Collection<Integer>getAgentTypeIds()intgetMaxAgents()intgetMinAgents()StringgetName()Collection<String>getProjectIds()Collection<String>getProjectIds(boolean includeNonExisting)inthashCode()booleanisDefault()booleanisProjectPool()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.agentPools.AgentPool
getOwnerProjectId
-
-
-
-
Constructor Detail
-
AgentPoolImpl
public AgentPoolImpl(int id, @NotNull String name, @NotNull AgentPoolManager agentPoolManager, @NotNull ProjectManagerEx projectManager)
-
-
Method Detail
-
getAgentPoolId
public int getAgentPoolId()
- Specified by:
getAgentPoolIdin interfaceAgentPool- Returns:
- agent pool id
-
isDefault
public boolean isDefault()
-
getName
@NotNull public String getName()
-
getProjectIds
@NotNull public Collection<String> getProjectIds()
- Specified by:
getProjectIdsin interfaceAgentPool- Returns:
- collection of projectIds associated with this pool. Only projectIds loaded into project model are returned
-
getProjectIds
@NotNull public Collection<String> getProjectIds(boolean includeNonExisting)
- Specified by:
getProjectIdsin interfaceAgentPool- Parameters:
includeNonExisting- whether to include non-existing projectIds into result- Returns:
- collection of projectIds associated with this pool. Only projectIds loaded into project model are returned
-
containsProjectId
public boolean containsProjectId(@NotNull String projectId)Description copied from interface:AgentPoolindicates whether current pools contain this projectId. This method checks against DB data, not against current project model- Specified by:
containsProjectIdin interfaceAgentPool- Returns:
- see above
-
getAgentTypeIds
@NotNull public Collection<Integer> getAgentTypeIds()
- Specified by:
getAgentTypeIdsin interfaceAgentPool- Returns:
- collection of agent type ids associated with this pool
-
isProjectPool
public boolean isProjectPool()
- Specified by:
isProjectPoolin interfaceAgentPool- Returns:
- indicates whether this agent pool is virtual (i.e. not persisted to DB)
- Since:
- 2017.1
-
getMaxAgents
public int getMaxAgents()
- Specified by:
getMaxAgentsin interfaceAgentPoolLimits- Returns:
- maximum number of agents which can be added to the pool, -1 means unlimited
-
getMinAgents
public int getMinAgents()
- Specified by:
getMinAgentsin interfaceAgentPoolLimits- Returns:
- minimum number of agents which should be preserved in the pool
-
-