php.java.servlet.fastcgi
Class NPChannelFactory
java.lang.Object
php.java.servlet.fastcgi.ChannelFactory
php.java.servlet.fastcgi.NPChannelFactory
class NPChannelFactory
- extends ChannelFactory
|
Field Summary |
static java.lang.String |
PREFIX
|
|
Method Summary |
Channel |
connect()
Connect to the FastCGI server and return the connection handle. |
protected Util.Process |
doBind(java.util.Map env,
java.lang.String php)
|
void |
findFreePort(boolean select)
Find a free port or pipe name. |
java.lang.String |
getFcgiStartCommand(java.lang.String base,
java.lang.String php_fcgi_max_requests)
Return a command which may be useful for starting the FastCGI server as a separate command. |
void |
setDefaultPort()
|
protected void |
setDynamicPort()
|
void |
test()
Test the FastCGI server. |
protected void |
waitForDaemon()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
NPChannelFactory
NPChannelFactory()
test
public void test()
throws ConnectException
- Description copied from class:
ChannelFactory
- Test the FastCGI server.
- Specified by:
test in class ChannelFactory
- Throws:
ConnectException - thrown if a IOException occured.
connect
public Channel connect()
throws ConnectException
- Description copied from class:
ChannelFactory
- Connect to the FastCGI server and return the connection handle.
- Specified by:
connect in class ChannelFactory
- Returns:
- The FastCGI Channel
- Throws:
ConnectException - thrown if a IOException occured.
doBind
protected Util.Process doBind(java.util.Map env,
java.lang.String php)
throws java.io.IOException
- Specified by:
doBind in class ChannelFactory
- Throws:
java.io.IOException
waitForDaemon
protected void waitForDaemon()
throws java.net.UnknownHostException,
java.lang.InterruptedException
- Specified by:
waitForDaemon in class ChannelFactory
- Throws:
java.net.UnknownHostException
java.lang.InterruptedException
getFcgiStartCommand
public java.lang.String getFcgiStartCommand(java.lang.String base,
java.lang.String php_fcgi_max_requests)
- Description copied from class:
ChannelFactory
- Return a command which may be useful for starting the FastCGI server as a separate command.
- Specified by:
getFcgiStartCommand in class ChannelFactory
- Parameters:
base - The context directoryphp_fcgi_max_requests - The number of requests, see appropriate servlet option.
- Returns:
- A command string
findFreePort
public void findFreePort(boolean select)
- Description copied from class:
ChannelFactory
- Find a free port or pipe name.
- Specified by:
findFreePort in class ChannelFactory
- Parameters:
select - If select is true, the default name should be used.
setDefaultPort
public void setDefaultPort()
- Specified by:
setDefaultPort in class ChannelFactory
setDynamicPort
protected void setDynamicPort()
- Specified by:
setDynamicPort in class ChannelFactory