hudson.plugins.swarm
クラス Client

java.lang.Object
  上位を拡張 hudson.plugins.swarm.Client

public class Client
extends Object

Swarm client.

Discovers nearby Hudson via UDP broadcast, and pick eligible one randomly and joins it.

作成者:
Kohsuke Kawaguchi

フィールドの概要
 String description
           
 int executors
           
 boolean help
           
 List<String> labels
           
 String master
           
 String name
           
 String password
           
 File remoteFsRoot
           
protected  DatagramSocket socket
          Used to discover the server.
protected  hudson.plugins.swarm.Client.Candidate target
          The Hudson that we are trying to connect to.
 String username
           
 
コンストラクタの概要
Client()
           
 
メソッドの概要
protected  void connect()
           
protected  void createSwarmSlave()
           
protected  List<DatagramPacket> discover()
          Discovers Jenkins running nearby.
static void main(String... args)
           
 void run()
          Finds a Jenkins master that supports swarming, and join it.
protected  void sendBroadcast()
           
protected  void verifyThatUrlIsHudson()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

socket

protected final DatagramSocket socket
Used to discover the server.


target

protected hudson.plugins.swarm.Client.Candidate target
The Hudson that we are trying to connect to.


name

public String name

description

public String description

labels

public List<String> labels

remoteFsRoot

public File remoteFsRoot

executors

public int executors

master

public String master

username

public String username

password

public String password

help

public boolean help
コンストラクタの詳細

Client

public Client()
       throws IOException
例外:
IOException
メソッドの詳細

main

public static void main(String... args)
                 throws InterruptedException,
                        IOException
例外:
InterruptedException
IOException

run

public void run()
         throws InterruptedException
Finds a Jenkins master that supports swarming, and join it. This method never returns.

例外:
InterruptedException

discover

protected List<DatagramPacket> discover()
                                 throws IOException,
                                        InterruptedException,
                                        RetryException
Discovers Jenkins running nearby. To give every nearby Jenkins a fair chance, wait for some time until we hear all the responses.

例外:
IOException
InterruptedException
RetryException

sendBroadcast

protected void sendBroadcast()
                      throws IOException
例外:
IOException

connect

protected void connect()
                throws InterruptedException
例外:
InterruptedException

createSwarmSlave

protected void createSwarmSlave()
                         throws IOException,
                                InterruptedException,
                                RetryException
例外:
IOException
InterruptedException
RetryException

verifyThatUrlIsHudson

protected void verifyThatUrlIsHudson()
                              throws InterruptedException,
                                     RetryException
例外:
InterruptedException
RetryException


Copyright © 2004-2011. All Rights Reserved.