Class BuildAgentImpl

    • Method Detail

      • isUnresponsive

        public boolean isUnresponsive()
        Description copied from interface: BuildAgent
        Whether or not the agent has been deemed to be "unresponsive". Agents will be first marked as unresponsive before they are made offline.

        Used for remote agents.

        Specified by:
        isUnresponsive in interface BuildAgent
        Returns:
      • setUnresponsive

        public void setUnresponsive​(boolean unresponsive)
        Specified by:
        setUnresponsive in interface BuildAgent
      • setAgentStatus

        public void setAgentStatus​(@NotNull
                                   @NotNull AgentStatus newAgentStatus)
      • isBusy

        public boolean isBusy()
        Description copied from interface: BuildAgent
        Returns true if an agent is building or is cancelling a build
        Specified by:
        isBusy in interface BuildAgent
        Returns:
      • getLastUpdated

        public Date getLastUpdated()
      • setLastUpdated

        public void setLastUpdated​(Date lastUpdated)
      • getRemoteTimestamp

        @Nullable
        public @Nullable Date getRemoteTimestamp()
      • setRemoteTimestamp

        public void setRemoteTimestamp​(Date remoteTimestamp)
      • getSystemInfo

        @Nullable
        public @Nullable SystemInfo getSystemInfo()
        Description copied from interface: HasSystemInfo
        Gets the system info, which may be null if not yet initialized.
        Specified by:
        getSystemInfo in interface HasSystemInfo
        Returns:
        system info of this agent
      • setSystemInfo

        public void setSystemInfo​(SystemInfo systemInfo)
      • isRequestedToBeStopped

        public boolean isRequestedToBeStopped()
        Description copied from interface: BuildAgent
        Whether or not a call has been made to shutdown the agent after the current build has finished
        Specified by:
        isRequestedToBeStopped in interface BuildAgent
        Returns:
      • incrementAndGetHeartbeatsWhileBuildingCounter

        public int incrementAndGetHeartbeatsWhileBuildingCounter()
      • resetHeartbeatsWhileBuildingCounter

        public void resetHeartbeatsWhileBuildingCounter()
      • hashCode

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

        public UUID getUuid()
        Description copied from interface: HasUuid
        Get UUID of this agent
        Specified by:
        getUuid in interface HasUuid
        Returns:
        UUID of this agent
      • setUuid

        public void setUuid​(UUID uuid)
      • hasUuid

        public boolean hasUuid()
        Description copied from interface: HasUuid
        Check whether this agent has already been assigned its UUID
        Specified by:
        hasUuid in interface HasUuid
        Returns:
        true, if this agent already has unique ID assigned