|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.hpsearch.shell.ShellWS
ShellWS listens for requests. When a request arrives it runs the request thru
the shell. The request is usually a URI of the script to be executed but
optionally can also include the actual script.
// Sample Script
w = new WSDL("http://localhost:28080/ShellWS?wsdl");
a = w
.invoke(
"execute",
"a = 5; RETURN_VALUE=\"http://danube.ucs.indiana.edu:6011/deltaP.xyz\"",
"");
Created on Oct 4, 2004
| Nested Class Summary | |
class |
ShellWS.ScriptRunner
A thread for executing scripts Created on Mar 25, 2005 |
| Constructor Summary | |
ShellWS()
|
|
| Method Summary | |
String |
execute(String script,
String arguments)
Executes the script passed as a parameter of the function |
String |
executeScript(String scriptURI,
String arguments)
Executes a script identified by its URI. |
String |
submit(String scriptURI,
String arguments)
Similar to executeScript. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShellWS()
| Method Detail |
public String executeScript(String scriptURI,
String arguments)
throws Exception
w = new WSDL("http://localhost:28080/ShellWS?wsdl");
w.invoke("execute", "file://b\test.js", "1 2");
scriptURI - -
The URI for the script
Exception
public String execute(String script,
String arguments)
throws Exception
script - The scriptarguments - Optional arguments to the script execution, MUST be empty string
if no arguments
Exception
public String submit(String scriptURI,
String arguments)
executeScript. However this function submits a
script for execution and returns immediately. The script is executed by a
different thread.
scriptURI - -
The URI for the script
|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||