Interface AgentPool

    • Method Detail

      • getAgentPoolId

        int getAgentPoolId()
        Returns:
        agent pool id
      • isDefault

        boolean isDefault()
        Returns:
        true if agent pool is default
      • getName

        @NotNull
        String getName()
        Returns:
        agent pool name
      • getProjectIds

        @NotNull
        Collection<String> getProjectIds()
        Returns:
        collection of projectIds associated with this pool. Only projectIds loaded into project model are returned
        Since:
        10.0
      • getProjectIds

        @NotNull
        Collection<String> getProjectIds​(boolean includeNonExisting)
        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
        Since:
        2017.2.4
      • containsProjectId

        boolean containsProjectId​(@NotNull
                                  String projectId)
        indicates whether current pools contain this projectId. This method checks against DB data, not against current project model
        Returns:
        see above
        Since:
        2018.1
      • getAgentTypeIds

        @NotNull
        Collection<Integer> getAgentTypeIds()
        Returns:
        collection of agent type ids associated with this pool
        Since:
        10.0
      • isProjectPool

        boolean isProjectPool()
        Returns:
        indicates whether this agent pool is virtual (i.e. not persisted to DB)
        Since:
        2017.1
      • getOwnerProjectId

        @Nullable
        default String getOwnerProjectId()
        Returns:
        for a project pool returns an internal id of a project which is the owner of the pool, for a non project pool returns null
        Since:
        2023.05.1