public class SwarmClient extends Object
| Constructor and Description |
|---|
SwarmClient(Options options) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public SwarmClient(Options options)
public Candidate discoverFromBroadcast() throws IOException, RetryException, ParserConfigurationException
protected void sendBroadcast(DatagramSocket socket) throws IOException
IOExceptionprotected List<DatagramPacket> collectBroadcastResponses(DatagramSocket socket) throws IOException, RetryException
IOExceptionRetryExceptionpublic Candidate discoverFromMasterUrl() throws IOException, ParserConfigurationException, RetryException
protected void connect(Candidate target) throws InterruptedException
target - candidateInterruptedExceptionprotected org.apache.commons.httpclient.HttpClient createHttpClient(URL urlForAuth)
protected void createSwarmSlave(Candidate target) throws IOException, InterruptedException, RetryException
protected void verifyThatUrlIsHudson(Candidate target) throws InterruptedException, RetryException
InterruptedExceptionRetryExceptionCopyright © 2004-2014. All Rights Reserved.