Class AgentPoolUtil
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentPools.AgentPoolUtil
-
public class AgentPoolUtil extends Object
- Author:
- Maxim.Manuylov Date: 24.08.2011
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AgentPoolUtil.PoolExtractor<T>
static interface
AgentPoolUtil.PoolInfo
-
Field Summary
Fields Modifier and Type Field Description static AgentPool
DUMMY_POOL
static AgentPool
DUMMY_PROJECT_POOL
Not to be used in real situationsstatic Comparator<AgentPool>
POOL_COMPARATOR
-
Constructor Summary
Constructors Constructor Description AgentPoolUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compare(AgentPool pool1, AgentPool pool2)
static int
compare(AgentPoolUtil.PoolInfo pool1, AgentPoolUtil.PoolInfo pool2)
static Map<AgentPool,Set<SAgentType>>
getAgentTypesGrouped(Collection<? extends BuildAgentEx> agents)
static List<Pair<AgentPool,List<SBuildAgent>>>
groupAgentsByPools(List<SBuildAgent> agents)
static <T> List<Pair<AgentPool,List<T>>>
groupByPools(Collection<T> poolHolders, AgentPoolUtil.PoolExtractor<T> poolExtractor, boolean sortPools)
-
-
-
Field Detail
-
POOL_COMPARATOR
@NotNull public static final Comparator<AgentPool> POOL_COMPARATOR
-
DUMMY_POOL
@NotNull public static final AgentPool DUMMY_POOL
-
DUMMY_PROJECT_POOL
@NotNull public static final AgentPool DUMMY_PROJECT_POOL
Not to be used in real situations
-
-
Method Detail
-
groupAgentsByPools
@NotNull public static List<Pair<AgentPool,List<SBuildAgent>>> groupAgentsByPools(@NotNull List<SBuildAgent> agents)
-
groupByPools
@NotNull public static <T> List<Pair<AgentPool,List<T>>> groupByPools(@NotNull Collection<T> poolHolders, @NotNull AgentPoolUtil.PoolExtractor<T> poolExtractor, boolean sortPools)
-
getAgentTypesGrouped
public static Map<AgentPool,Set<SAgentType>> getAgentTypesGrouped(@NotNull Collection<? extends BuildAgentEx> agents)
-
compare
public static int compare(@NotNull AgentPoolUtil.PoolInfo pool1, @NotNull AgentPoolUtil.PoolInfo pool2)
-
-