|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.server.http.ServletServer
Base class for HTTP and Runner servers.
Field Summary | |
protected WriteStream |
dbg
|
Method Summary | |
void |
addTcpServer(com.caucho.server.TcpServer server)
Adds a tcp server. |
void |
adminRestart()
|
void |
clearCache()
Clears the internal caches. |
void |
clearSessionBackingCache()
|
void |
close()
On shutdown, gracefully close the hosts. |
void |
close(boolean shutdown)
On shutdown, gracefully close the hosts. |
void |
cron(long now)
Timeout for cron jobs |
boolean |
forbidConnection(java.net.Socket socket)
If we're forbidding hosts, see if this host is allowed. |
Srun |
getOwnSrun()
|
java.util.HashMap |
getPathVariableMap()
Returns the server's variable path. |
java.lang.String |
getServerId()
Returns the server name. |
long |
getServerSeed()
Returns the serverId seed. |
int |
getSlowThreads()
|
Srun |
getSrun(int sessionIndex)
Returns the srun with the specified session index. |
int |
getSrunCount()
Returns the total number of sruns in the load balancing pool. |
Srun[] |
getSrunGroup()
Returns the array of sruns. |
int |
getSrunIndex()
Gets the assigned srun index for the JVM. |
long |
getStartTime()
Returns the time in milliseconds when the server was started. |
java.util.ArrayList |
getTcpServerAdminList()
Gets the tcp servers. |
void |
handleAlarm(Alarm alarm)
Handles alarm callbacks every reaperInterval
|
void |
handleCron(Cron alarm)
Handles alarm callbacks every reaperInterval
|
int |
incrSession()
|
void |
invalidateCache(java.lang.String url)
Invalidate entries matching the url |
void |
killCache()
|
com.caucho.http.session.SessionBacking |
lookupSessionBacking(java.lang.String id)
|
void |
removeSessionBacking(java.lang.String id)
Removes the named session from the backing cache. |
void |
setServerId(java.lang.String id)
When known, sets the srun index for the JVM. |
void |
setSrunIndex(int index)
When known, sets the srun index for the JVM. |
void |
timeout(long now)
Propagates the reaper callback to the hosts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected WriteStream dbg
Method Detail |
public long getServerSeed()
public void addTcpServer(com.caucho.server.TcpServer server)
public java.util.ArrayList getTcpServerAdminList()
public void clearCache()
public void invalidateCache(java.lang.String url)
public java.util.HashMap getPathVariableMap()
public boolean forbidConnection(java.net.Socket socket)
forbidConnection
in interface com.caucho.server.Server
socket
- the newly accepted socketpublic com.caucho.http.session.SessionBacking lookupSessionBacking(java.lang.String id)
public void clearSessionBackingCache()
public void removeSessionBacking(java.lang.String id)
public java.lang.String getServerId()
public void setServerId(java.lang.String id)
public void setSrunIndex(int index)
public int getSrunIndex()
public int getSrunCount()
public Srun getOwnSrun()
public Srun getSrun(int sessionIndex)
public Srun[] getSrunGroup()
public int incrSession()
public void handleAlarm(Alarm alarm)
reaperInterval
The connections and the server actually handle the callbacks.
handleAlarm
in interface AlarmListener
public void handleCron(Cron alarm)
reaperInterval
The connections and the server actually handle the callbacks.
handleCron
in interface CronListener
public void timeout(long now)
now
- current time.public void adminRestart()
public void cron(long now)
now
- current time.public long getStartTime()
public int getSlowThreads()
public void killCache()
public void close()
public void close(boolean shutdown)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |