Class AgentPoolImpl

    • Method Detail

      • getAgentPoolId

        public int getAgentPoolId()
        Specified by:
        getAgentPoolId in interface AgentPool
        Returns:
        agent pool id
      • isDefault

        public boolean isDefault()
        Specified by:
        isDefault in interface AgentPool
        Returns:
        true if agent pool is default
      • getName

        @NotNull
        public String getName()
        Specified by:
        getName in interface AgentPool
        Returns:
        agent pool name
      • getProjectIds

        @NotNull
        public Collection<String> getProjectIds()
        Specified by:
        getProjectIds in interface AgentPool
        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 interface AgentPool
        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 interface AgentPool
        Returns:
        see above
      • isProjectPool

        public boolean isProjectPool()
        Specified by:
        isProjectPool in interface AgentPool
        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 interface AgentPoolLimits
        Returns:
        maximum number of agents which can be added to the pool, -1 means unlimited
      • getMinAgents

        public int getMinAgents()
        Specified by:
        getMinAgents in interface AgentPoolLimits
        Returns:
        minimum number of agents which should be preserved in the pool
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • describe

        @NotNull
        public String describe​(boolean verbose)
        Specified by:
        describe in interface Loggable
        Parameters:
        verbose - verbosity of object description
        Returns:
        description of this object. If verbose is true, description should have mode details.