hudson
Class UDPBroadcastThread

java.lang.Object
  extended by java.lang.Thread
      extended by hudson.UDPBroadcastThread
All Implemented Interfaces:
Runnable

public class UDPBroadcastThread
extends Thread

Monitors a UDP multicast broadcast and respond with the location of the Hudson service.

Useful for auto-discovery of Hudson in the network.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static InetAddress MULTICAST
          Multicast socket address.
static int PORT
           
 OneShotEvent ready
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UDPBroadcastThread(Hudson jenkins)
          Deprecated. as of 1.416 Use UDPBroadcastThread(Jenkins)
UDPBroadcastThread(Jenkins jenkins)
           
 
Method Summary
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ready

public final OneShotEvent ready

PORT

public static final int PORT

MULTICAST

public static InetAddress MULTICAST
Multicast socket address.

Constructor Detail

UDPBroadcastThread

public UDPBroadcastThread(Hudson jenkins)
                   throws IOException
Deprecated. as of 1.416 Use UDPBroadcastThread(Jenkins)

Throws:
IOException

UDPBroadcastThread

public UDPBroadcastThread(Jenkins jenkins)
                   throws IOException
Throws:
IOException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

shutdown

public void shutdown()


Copyright © 2004-2013. All Rights Reserved.