Class UnregisteredAgent

    • Method Detail

      • upgrade

        public boolean upgrade​(Action<Boolean> callback)
        Description copied from interface: BuildAgentEx
        Sends upgrade command on agent
        Parameters:
        callback - will be called with true if upgrade was accepted by agent.
        Returns:
        true if upgrade is scheduled, false otherwise (for example if previous Upgrade call is still in progress).
      • getRegistrationTimestamp

        @NotNull
        public Date getRegistrationTimestamp()
        Description copied from interface: SBuildAgent
        Returns timestamp of this agent registration. If agent is not registered the returned timestamp is timestamp of last agent registration.
        Returns:
        see above
      • getPort

        public int getPort()
        Description copied from interface: SBuildAgent
        Port where agent is listening for server commands.
        Returns:
        see above
      • ping

        public boolean ping()
        Description copied from interface: SBuildAgent
        Try to ping agent over networks
        Returns:
        true if agent is reachable
      • isRegistered

        public boolean isRegistered()
        Description copied from interface: SBuildAgent
        Returns true or false depending on whether this agent is currently registered on server or not.
        Returns:
        see above
      • getUnregistrationComment

        public String getUnregistrationComment()
        Description copied from interface: SBuildAgent
        If agent is not registered returns reason of its' unregistration.
        Returns:
        agent is not registered returns reason of its' unregistration.
      • restoreAgent

        public boolean restoreAgent()
        Description copied from interface: BuildAgentInit
        Restores this agent data from the database.
        Specified by:
        restoreAgent in interface BuildAgentInit
        Overrides:
        restoreAgent in class AbstractBuildAgent
        Returns:
        true if agent was in the database and its status was restored and false if this agent is new
      • describe

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