Class Slave

All Implemented Interfaces:
CapybaraPortingLayer
Direct Known Subclasses:
DumbSlave

public class Slave extends Node
An agent page object.

To create a new agent into a test, use SlaveController.

Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class Node
    • isOnline

      public boolean isOnline()
    • waitUntilOnline

      public Slave waitUntilOnline()
      Waits for a slave to come online before proceeding.
      See Also:
    • getLog

      public String getLog()
    • isOffline

      public boolean isOffline()
    • getExecutorCount

      public int getExecutorCount()
    • runBuildsInOrder

      public static Matcher<Slave> runBuildsInOrder(Job... jobs)
    • markOffline

      public void markOffline()
      If the agent is online, this method will mark it offline for testing purpose.
    • markOffline

      public void markOffline(String message)
    • markOnline

      public void markOnline()
      If the agent has been marked offline, this method will bring it up again
    • disconnect

      public void disconnect(String message)
      If the agent is online, this method will disconnect for testing purpose.
    • delete

      public void delete()
    • launchSlaveAgent

      @Deprecated public void launchSlaveAgent()
      Deprecated.
      Prefer launch().
      If the agent is offline, this method will launch it.
    • launch

      public void launch()
      If the agent is offline, this method will launch it.