public class Client extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
autoDiscoveryAddress |
String |
description |
boolean |
disableSslVerification |
int |
executors |
boolean |
help |
List<String> |
labels |
String |
master |
String |
mode |
String |
name |
String |
password |
File |
remoteFsRoot |
protected hudson.plugins.swarm.Client.Candidate |
target
The Jenkins that we are trying to connect to.
|
String |
username |
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected hudson.plugins.swarm.Client.Candidate target
public String name
public String description
public File remoteFsRoot
public int executors
public String master
public String autoDiscoveryAddress
public boolean disableSslVerification
public String mode
public String username
public String password
public boolean help
public Client()
throws IOException
IOExceptionpublic static void main(String... args) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic void run()
throws InterruptedException
InterruptedExceptionprotected hudson.plugins.swarm.Client.Candidate discoverFromBroadcast()
throws IOException,
InterruptedException,
RetryException,
ParserConfigurationException
protected void sendBroadcast(DatagramSocket socket) throws IOException
IOExceptionprotected List<DatagramPacket> collectBroadcastResponses(DatagramSocket socket) throws IOException, RetryException
IOExceptionRetryExceptionprotected void connect()
throws InterruptedException
InterruptedExceptionprotected org.apache.commons.httpclient.HttpClient createHttpClient(URL urlForAuth)
protected void createSwarmSlave()
throws IOException,
InterruptedException,
RetryException
protected void verifyThatUrlIsHudson()
throws InterruptedException,
RetryException
InterruptedExceptionRetryExceptionCopyright © 2004-2014. All Rights Reserved.