|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.swarm.Client
public class Client
Swarm client.
Discovers nearby Hudson via UDP broadcast, and pick eligible one randomly and joins it.
| Field Summary | |
|---|---|
java.lang.String |
description
|
int |
executors
|
boolean |
help
|
java.lang.String |
labels
|
java.lang.String |
master
|
java.lang.String |
name
|
java.io.File |
remoteFsRoot
|
protected java.net.DatagramSocket |
socket
Used to discover the server. |
protected hudson.plugins.swarm.Client.Candidate |
target
The Hudson that we are trying to connect to. |
| Constructor Summary | |
|---|---|
Client()
|
|
| Method Summary | |
|---|---|
protected void |
connect()
|
protected void |
createSwarmSlave()
|
protected java.util.List<java.net.DatagramPacket> |
discover()
Discovers Hudson running nearby. |
static void |
main(java.lang.String... args)
|
void |
run()
Finds a Hudson master that supports swarming, and join it. |
protected void |
sendBroadcast()
|
protected void |
verifyThatUrlIsHudson()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.net.DatagramSocket socket
protected hudson.plugins.swarm.Client.Candidate target
public java.lang.String name
public java.lang.String description
public java.lang.String labels
public java.io.File remoteFsRoot
public int executors
public java.lang.String master
public boolean help
| Constructor Detail |
|---|
public Client()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static void main(java.lang.String... args)
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException
java.io.IOException
public void run()
throws java.lang.InterruptedException
java.lang.InterruptedException
protected java.util.List<java.net.DatagramPacket> discover()
throws java.io.IOException,
java.lang.InterruptedException,
RetryException
java.io.IOException
java.lang.InterruptedException
RetryException
protected void sendBroadcast()
throws java.io.IOException
java.io.IOException
protected void connect()
throws java.lang.InterruptedException
java.lang.InterruptedException
protected void createSwarmSlave()
throws java.io.IOException,
java.lang.InterruptedException,
RetryException
java.io.IOException
java.lang.InterruptedException
RetryException
protected void verifyThatUrlIsHudson()
throws java.lang.InterruptedException,
RetryException
java.lang.InterruptedException
RetryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||