test
Class Droovy

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by test.Droovy
All Implemented Interfaces:
groovy.lang.GroovyObject, java.io.Serializable

public class Droovy
extends groovy.lang.GroovyObjectSupport
implements java.io.Serializable

Entry point to the distributed Groovy support.

See Also:
Serialized Form

Field Summary
 java.net.URL hudson
           
 
Constructor Summary
Droovy()
          Creates a distributed Groovy environment.
Droovy(java.net.URL hudson)
          Creates a distributed Groovy environment.
 
Method Summary
 void close()
          Shuts down all the remote Servers and terminate the distributed environment.
 Server connect()
          Provisions a new node.
 Server connect(java.lang.String name)
          Provisions a new node.
static void main(java.lang.String[] args)
           
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hudson

public final java.net.URL hudson
Constructor Detail

Droovy

public Droovy(java.net.URL hudson)
       throws java.io.IOException,
              java.lang.InterruptedException
Creates a distributed Groovy environment.

Parameters:
hudson - URL of Hudson that provides the clustering environment.
Throws:
java.io.IOException
java.lang.InterruptedException

Droovy

public Droovy()
       throws java.io.IOException,
              java.lang.InterruptedException
Creates a distributed Groovy environment.

URL of Hudson is taken from the HUDSON_URL system property or the HUDSON_URL environment variable (in that order of preference.)

Throws:
java.io.IOException
java.lang.InterruptedException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
           throws java.io.IOException,
                  java.lang.InterruptedException
Shuts down all the remote Servers and terminate the distributed environment.

Throws:
java.io.IOException
java.lang.InterruptedException

connect

public Server connect()
               throws java.io.IOException
Provisions a new node.

Connects by using a random unique name.

Throws:
java.io.IOException

connect

public Server connect(java.lang.String name)
               throws java.io.IOException
Provisions a new node.

Parameters:
name - Human-readable name that represents this server. Used for error messages and status screen on Hudson.
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.