com.caucho.server.http
Class ServletServer
java.lang.Object
|
+--com.caucho.server.http.ServletServer
- All Implemented Interfaces:
- com.caucho.server.Server
- public class ServletServer
- extends java.lang.Object
- implements com.caucho.server.Server
Base class for HTTP and Runner servers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbg
protected WriteStream dbg
ServletServer
public ServletServer(Path config,
RegistryNode registry,
Path pwd)
throws java.lang.Exception
- Create a new servlet server from the given registry.
- Parameters:
registry
- server configurationpwd
- file context to be used as the serverRoot.
setServer
public void setServer(com.caucho.server.TcpServer server)
- Specified by:
setServer
in interface com.caucho.server.Server
getServer
public com.caucho.server.TcpServer getServer()
timeout
public void timeout(long now)
- Propagates the reaper callback to the hosts.
- Specified by:
timeout
in interface com.caucho.server.Server
- Parameters:
now
- current time.
cron
public void cron(long now)
- Timeout for cron jobs
- Specified by:
cron
in interface com.caucho.server.Server
- Parameters:
now
- current time.
getMinuteStat
public com.caucho.server.ServerStat getMinuteStat()
getHourStat
public com.caucho.server.ServerStat getHourStat()
getDayStat
public com.caucho.server.ServerStat getDayStat()
getStartTime
public long getStartTime()
getSlowThreads
public int getSlowThreads()
close
public void close()
- On shutdown, gracefully close the hosts.
- Specified by:
close
in interface com.caucho.server.Server