hudson.plugins.swarm
クラス Client

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

public class Client
extends Object

Swarm client.

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

作成者:
Kohsuke Kawaguchi

フィールドの概要
 String autoDiscoveryAddress
           
 String description
           
 boolean disableSslVerification
           
 int executors
           
 boolean help
           
 List<String> labels
           
 String master
           
 String name
           
 String password
           
 File remoteFsRoot
           
protected  hudson.plugins.swarm.Client.Candidate target
          The Jenkins that we are trying to connect to.
 String username
           
 
コンストラクタの概要
Client()
           
 
メソッドの概要
protected  List<DatagramPacket> collectBroadcastResponses(DatagramSocket socket)
           
protected  void connect()
          This method blocks while the swarm slave is serving as a slave.
protected  org.apache.commons.httpclient.HttpClient createHttpClient(URL urlForAuth)
           
protected  void createSwarmSlave()
           
protected  hudson.plugins.swarm.Client.Candidate discoverFromBroadcast()
           
static void main(String... args)
           
 void run()
          Finds a Jenkins master that supports swarming, and join it.
protected  void sendBroadcast(DatagramSocket socket)
           
protected  void verifyThatUrlIsHudson()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

target

protected hudson.plugins.swarm.Client.Candidate target
The Jenkins 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

autoDiscoveryAddress

public String autoDiscoveryAddress

disableSslVerification

public boolean disableSslVerification

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

discoverFromBroadcast

protected hudson.plugins.swarm.Client.Candidate discoverFromBroadcast()
                                                               throws IOException,
                                                                      InterruptedException,
                                                                      RetryException,
                                                                      ParserConfigurationException
例外:
IOException
InterruptedException
RetryException
ParserConfigurationException

sendBroadcast

protected void sendBroadcast(DatagramSocket socket)
                      throws IOException
例外:
IOException

collectBroadcastResponses

protected List<DatagramPacket> collectBroadcastResponses(DatagramSocket socket)
                                                  throws IOException,
                                                         RetryException
例外:
IOException
RetryException

connect

protected void connect()
                throws InterruptedException
This method blocks while the swarm slave is serving as a slave.

Interrupt the thread to abort it and return.

例外:
InterruptedException

createHttpClient

protected org.apache.commons.httpclient.HttpClient createHttpClient(URL urlForAuth)

createSwarmSlave

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

verifyThatUrlIsHudson

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


Copyright © 2004-2012. All Rights Reserved.