|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.http.FCGIConnectionFactory
php.java.bridge.http.NPChannelFactory
public class NPChannelFactory
A factory which creates FastCGI "named pipe" channels.
| Field Summary | |
|---|---|
static java.lang.String |
PREFIX
The named pipe prefix |
| Constructor Summary | |
|---|---|
NPChannelFactory(IFCGIProcessFactory processFactory)
Create a new factory using a given processFactory |
|
| Method Summary | |
|---|---|
FCGIConnection |
connect()
Create a FCGIConnection |
void |
findFreePort(boolean select)
Find a free socket port. |
java.lang.String |
getFcgiStartCommand(java.lang.String base,
java.lang.String php_fcgi_max_requests)
Return the OS command used to start the FCGI process |
java.lang.String |
getPath()
Return the path selected by setDefaultPort() or setDynamicPort() |
void |
setDefaultPort()
Set the a default port, overriding the port selected by findFreePort(boolean) |
void |
setDynamicPort()
Set the dynamic port selected by findFreePort(boolean) |
void |
test()
Tests if the channel will be available. |
java.lang.String |
toString()
Return the channel name |
| Methods inherited from class php.java.bridge.http.FCGIConnectionFactory |
|---|
createChannelFactory, destroy, initialize, startServer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PREFIX
| Constructor Detail |
|---|
public NPChannelFactory(IFCGIProcessFactory processFactory)
processFactory - the FCGIProcessFactory| Method Detail |
|---|
public void test()
throws FCGIConnectException
test in class FCGIConnectionFactoryFCGIConnectException
public FCGIConnection connect()
throws FCGIConnectException
connect in class FCGIConnectionFactoryFCGIConnectException
public java.lang.String getFcgiStartCommand(java.lang.String base,
java.lang.String php_fcgi_max_requests)
getFcgiStartCommand in class FCGIConnectionFactorybase - The context directoryphp_fcgi_max_requests - The number of requests, see appropriate servlet option.
public void findFreePort(boolean select)
setDynamicPort() should be called
findFreePort in class FCGIConnectionFactoryselect - wether or not some hard-coded path should be usedpublic void setDefaultPort()
findFreePort(boolean)
public void setDynamicPort()
findFreePort(boolean)
public java.lang.String getPath()
setDefaultPort() or setDynamicPort()
public java.lang.String toString()
toString in class FCGIConnectionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||