hudson.plugins.swarm
Class SwarmClient
java.lang.Object
hudson.plugins.swarm.SwarmClient
public class SwarmClient
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwarmClient
public SwarmClient(Options options)
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.