hudson.remoting
Class Engine

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

public class Engine
extends java.lang.Thread

Slave agent engine that proactively connects to Hudson master.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String GREETING_SUCCESS
           
 EngineListener listener
           
 java.lang.String slaveName
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Engine(EngineListener listener, java.util.List<java.net.URL> hudsonUrls, java.lang.String secretKey, java.lang.String slaveName)
           
 
Method Summary
static Engine current()
          When invoked from within remoted Callable (that is, from the thread that carries out the remote requests), this method returns the Engine in which the remote operations run.
 java.net.URL getHudsonUrl()
           
 void run()
           
 void setCredentials(java.lang.String creds)
           
 void setNoReconnect(boolean noReconnect)
           
 void setTunnel(java.lang.String tunnel)
           
 
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

listener

public final EngineListener listener

slaveName

public final java.lang.String slaveName

GREETING_SUCCESS

public static final java.lang.String GREETING_SUCCESS
See Also:
Constant Field Values
Constructor Detail

Engine

public Engine(EngineListener listener,
              java.util.List<java.net.URL> hudsonUrls,
              java.lang.String secretKey,
              java.lang.String slaveName)
Method Detail

getHudsonUrl

public java.net.URL getHudsonUrl()

setTunnel

public void setTunnel(java.lang.String tunnel)

setCredentials

public void setCredentials(java.lang.String creds)

setNoReconnect

public void setNoReconnect(boolean noReconnect)

run

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

current

public static Engine current()
When invoked from within remoted Callable (that is, from the thread that carries out the remote requests), this method returns the Engine in which the remote operations run.



Copyright © 2012. All Rights Reserved.