|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.server.http.PingThread
A thread to restart the Resin server if it fails for some reason.
This pinging only catches some problems because it's running in the same JDK process as Resin itself. If the entire JDK freezes, this thread will freeze as well. Assuming the JDK doesn't freeze, the PingThread will catch errors like deadlocks.
Constructor Summary | |
PingThread()
|
Method Summary | |
void |
addURL(java.lang.String url)
Adds a new URL to be tested. |
ResinServer |
getResinServer()
Gets the underlying server. |
long |
getRetryTime()
Gets the retry time between failing pings |
long |
getSleepTime()
Gets the sleep time between pings |
long |
getSocketTimeout()
Gets the time to wait on a non-responsive socket before giving up. |
int |
getTryCount()
Gets the number of times to retry before giving up |
void |
run()
Periodically pings the server to check for anything going wrong. |
void |
setResinServer(ResinServer server)
Sets the underlying server. |
void |
setRetryTime(long retryTime)
Sets the retry time between failing pings |
void |
setSleepTime(long sleepTime)
Sets the sleep time between pings |
void |
setSocketTimeout(long timeout)
Sets the number of times to retry before giving up |
void |
setTryCount(int tryCount)
Sets the number of times to retry before giving up |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PingThread()
Method Detail |
public ResinServer getResinServer()
public void setResinServer(ResinServer server)
public void addURL(java.lang.String url)
public long getSleepTime()
public void setSleepTime(long sleepTime)
public long getRetryTime()
public void setRetryTime(long retryTime)
public int getTryCount()
public void setTryCount(int tryCount)
public long getSocketTimeout()
public void setSocketTimeout(long timeout)
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |