|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.AbstractServerLoadMonitor
org.directwebremoting.impl.ThreadDroppingServerLoadMonitor
public class ThreadDroppingServerLoadMonitor
A smart implementation of ServerLoadMonitor, customized for Jetty. The ThreadDroppingServerLoadMonitor attempts to keep the hit rate down by increasing the disconnected time as usage increases.
| Constructor Summary | |
|---|---|
ThreadDroppingServerLoadMonitor()
|
|
| Method Summary | |
|---|---|
long |
getConnectedTime()
What's the longest time that we should wait before asking the client to reconnect? |
int |
getDisconnectedTime()
Controller for poll times. |
void |
setMaxHitsPerSecond(int maxHitsPerSecond)
|
void |
threadWaitEnding(WaitController controller)
A thread has just ended a wait period. |
void |
threadWaitStarting(WaitController controller)
A thread is about to begin a wait period. |
| Methods inherited from class org.directwebremoting.impl.AbstractServerLoadMonitor |
|---|
shutdown, shutdownRandomWaitControllers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.directwebremoting.extend.ServerLoadMonitor |
|---|
shutdown |
| Constructor Detail |
|---|
public ThreadDroppingServerLoadMonitor()
| Method Detail |
|---|
public long getConnectedTime()
ServerLoadMonitor
getConnectedTime in interface ServerLoadMonitorpublic int getDisconnectedTime()
ServerLoadMonitorTODO: We should probably get rid of this and leave it to PollHandler?
getDisconnectedTime in interface ServerLoadMonitorpublic void threadWaitStarting(WaitController controller)
ServerLoadMonitor
threadWaitStarting in interface ServerLoadMonitorthreadWaitStarting in class AbstractServerLoadMonitorcontroller - An object that we can use to control the waitpublic void threadWaitEnding(WaitController controller)
ServerLoadMonitor
threadWaitEnding in interface ServerLoadMonitorthreadWaitEnding in class AbstractServerLoadMonitorcontroller - An object that we can use to control the waitpublic void setMaxHitsPerSecond(int maxHitsPerSecond)
maxHitsPerSecond - the maxHitsPerSecond to set
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||