|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.http.PipeContextServer
public class PipeContextServer
This class manages the physical connection on Unix or Linux machines. PHP clients create a pair of named pipes and pass their location via the X_JAVABRIDGE_REDIRECT header (see PhpJavaServlet}. When isAvailable() returns true, all further communication goes through the pair of pipes, see response header X_JAVABRIDGE_REDIRECT.
It is possible to switch off this server by setting the VM property php.java.bridge.no_pipe_server to true, e.g.: -Dphp.java.bridge.no_pipe_server=true.
SocketContextServer
,
ContextServer
Constructor Summary | |
---|---|
PipeContextServer(ContextFactory.ICredentials contextServer,
AppThreadPool threadPool,
java.lang.String contextName)
Create a new ContextServer using the ThreadPool. |
Method Summary | |
---|---|
void |
destroy()
Destroy the server |
boolean |
isAvailable()
Check if the ContextServer is ready |
boolean |
start(AbstractChannelName channelName)
Start the runner. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PipeContextServer(ContextFactory.ICredentials contextServer, AppThreadPool threadPool, java.lang.String contextName)
contextServer
- The web context serverthreadPool
- Obtain runnables from this pool. If null, new threads will be created.contextName
- Method Detail |
---|
public boolean start(AbstractChannelName channelName)
start
in interface IContextServer
channelName
- The channel name
public void destroy()
destroy
in interface IContextServer
public boolean isAvailable()
isAvailable
in interface IContextServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |