hudson.plugins.swarm
Class SwarmClient

java.lang.Object
  extended by hudson.plugins.swarm.SwarmClient

public class SwarmClient
extends Object


Constructor Summary
SwarmClient(Options options)
           
 
Method Summary
protected  List<DatagramPacket> collectBroadcastResponses(DatagramSocket socket)
           
protected  void connect(Candidate target)
          This method blocks while the swarm slave is serving as a slave.
protected  org.apache.commons.httpclient.HttpClient createHttpClient(URL urlForAuth)
           
protected  void createSwarmSlave(Candidate target)
           
 Candidate discoverFromBroadcast()
           
 Candidate discoverFromMasterUrl()
           
protected  void sendBroadcast(DatagramSocket socket)
           
protected  void verifyThatUrlIsHudson(Candidate target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwarmClient

public SwarmClient(Options options)
Method Detail

discoverFromBroadcast

public Candidate discoverFromBroadcast()
                                throws IOException,
                                       RetryException,
                                       ParserConfigurationException
Throws:
IOException
RetryException
ParserConfigurationException

sendBroadcast

protected void sendBroadcast(DatagramSocket socket)
                      throws IOException
Throws:
IOException

collectBroadcastResponses

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

discoverFromMasterUrl

public Candidate discoverFromMasterUrl()
                                throws IOException,
                                       ParserConfigurationException,
                                       RetryException
Throws:
IOException
ParserConfigurationException
RetryException

connect

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

Interrupt the thread to abort it and return.

Parameters:
target - candidate
Throws:
InterruptedException

createHttpClient

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

createSwarmSlave

protected void createSwarmSlave(Candidate target)
                         throws IOException,
                                InterruptedException,
                                RetryException
Throws:
IOException
InterruptedException
RetryException

verifyThatUrlIsHudson

protected void verifyThatUrlIsHudson(Candidate target)
                              throws InterruptedException,
                                     RetryException
Throws:
InterruptedException
RetryException


Copyright © 2004-2014. All Rights Reserved.