Class MockAgentType

    • Constructor Detail

      • MockAgentType

        public MockAgentType​(BuildHistoryEx buildHistory)
    • Method Detail

      • setName

        public void setName​(String name)
      • setAgentTypeId

        public void setAgentTypeId​(int agentTypeId)
      • setAgentPoolId

        public void setAgentPoolId​(int agentPoolId)
      • getBuildHistory

        @NotNull
        public List<SFinishedBuild> getBuildHistory​(@Nullable
                                                    User user,
                                                    boolean includeCanceled)
        Description copied from interface: AgentBuildHistory
        Returns the build history of this agent.

        The history can be filtered by user, as well as by cancelled builds.

        Specified by:
        getBuildHistory in interface AgentBuildHistory
        Parameters:
        user - if set the result will contain only builds by user
        includeCanceled - if set the result will include canceled builds as well
        Returns:
        build history
      • getRealAgent

        @Nullable
        public SBuildAgent getRealAgent()
        Description copied from interface: SAgentType
        For real agent types returns the corresponding agent or null if it does not exist anymore. For cloud agent types returns null always.
        Specified by:
        getRealAgent in interface SAgentType
        Returns:
        see above
      • containsAgentDescriptionData

        public boolean containsAgentDescriptionData()
        Specified by:
        containsAgentDescriptionData in interface SAgentType
        Returns:
        true if agent contains AgentDescription from some connected agent