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 boolean
containsProjectId(String projectId)
indicates whether current pools contain this projectId.String
describe(boolean verbose)
boolean
equals(Object o)
int
getAgentPoolId()
Collection<Integer>
getAgentTypeIds()
int
getMaxAgents()
int
getMinAgents()
String
getName()
Collection<String>
getProjectIds()
Collection<String>
getProjectIds(boolean includeNonExisting)
int
hashCode()
boolean
isDefault()
boolean
isProjectPool()
String
toString()
-
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:
getAgentPoolId
in interfaceAgentPool
- Returns:
- agent pool id
-
isDefault
public boolean isDefault()
-
getName
@NotNull public String getName()
-
getProjectIds
@NotNull public Collection<String> getProjectIds()
- Specified by:
getProjectIds
in 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:
getProjectIds
in 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:AgentPool
indicates whether current pools contain this projectId. This method checks against DB data, not against current project model- Specified by:
containsProjectId
in interfaceAgentPool
- Returns:
- see above
-
getAgentTypeIds
@NotNull public Collection<Integer> getAgentTypeIds()
- Specified by:
getAgentTypeIds
in interfaceAgentPool
- Returns:
- collection of agent type ids associated with this pool
-
isProjectPool
public boolean isProjectPool()
- Specified by:
isProjectPool
in interfaceAgentPool
- Returns:
- indicates whether this agent pool is virtual (i.e. not persisted to DB)
- Since:
- 2017.1
-
getMaxAgents
public int getMaxAgents()
- Specified by:
getMaxAgents
in interfaceAgentPoolLimits
- Returns:
- maximum number of agents which can be added to the pool, -1 means unlimited
-
getMinAgents
public int getMinAgents()
- Specified by:
getMinAgents
in interfaceAgentPoolLimits
- Returns:
- minimum number of agents which should be preserved in the pool
-
-