|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
php.java.script.CGIRunner
abstract class CGIRunner
This class can be used to run a PHP CGI binary. Used only when running local php scripts. To allocate and invoke remote scripts please use a HttpProxy and a URLReader instead.
HttpServer,
URLReader,
HttpProxy| Nested Class Summary | |
|---|---|
protected class |
CGIRunner.Lock
|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.util.Map |
env
|
protected java.io.OutputStream |
err
|
protected Util.HeaderParser |
headerParser
|
protected java.io.OutputStream |
out
|
protected java.io.Reader |
reader
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
CGIRunner(java.lang.String name,
java.io.Reader reader,
java.util.Map env,
java.io.OutputStream out,
java.io.OutputStream err,
Util.HeaderParser headerParser,
ResultProxy resultProxy)
|
| Method Summary | |
|---|---|
void |
call(PhpProcedureProxy script)
The PHP script must call this function with the current continuation as an argument. |
protected void |
doRun()
|
PhpProcedureProxy |
getPhpScript()
One must call this function if one is interested in the php continuation. |
void |
release()
This function must be called to release the allocated php continuation. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map env
protected java.io.OutputStream out
protected java.io.OutputStream err
protected java.io.Reader reader
protected Util.HeaderParser headerParser
| Constructor Detail |
|---|
protected CGIRunner(java.lang.String name,
java.io.Reader reader,
java.util.Map env,
java.io.OutputStream out,
java.io.OutputStream err,
Util.HeaderParser headerParser,
ResultProxy resultProxy)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
protected void doRun()
throws java.io.IOException,
Util.Process.PhpException
java.io.IOException
Util.Process.PhpException
public void call(PhpProcedureProxy script)
throws java.lang.InterruptedException
Example:
java_context()->call(java_closure());
script - - The php continuation
java.lang.InterruptedException
public PhpProcedureProxy getPhpScript()
throws java.lang.Exception
java.lang.Exception
public void release()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||