|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Closure
test.Server
public class Server
Represents a connection to a remote server.
| Field Summary |
|---|
| Fields inherited from class groovy.lang.Closure |
|---|
DELEGATE_FIRST, DELEGATE_ONLY, DONE, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF |
| Constructor Summary | |
|---|---|
Server(java.lang.Object owner,
hudson.remoting.Channel channel)
|
|
| Method Summary | |
|---|---|
void |
close()
Terminates the remote JVM and shuts down this server. |
java.lang.Object |
doCall(groovy.lang.Closure closure)
Executes a groovy closure on this server and returns the result back. |
hudson.remoting.Channel |
getChannel()
|
| Methods inherited from class groovy.lang.Closure |
|---|
asWritable, call, call, call, clone, curry, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException |
| Methods inherited from class groovy.lang.GroovyObjectSupport |
|---|
getMetaClass, invokeMethod, setMetaClass |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Server(java.lang.Object owner,
hudson.remoting.Channel channel)
| Method Detail |
|---|
public hudson.remoting.Channel getChannel()
public java.lang.Object doCall(groovy.lang.Closure closure)
throws java.lang.Throwable
From groovy, this can be invoked as if this object is a block, like this:
Server server = droovy.connec("db")
server {
println "Hello";
}
java.lang.Throwable
public void close()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||