| |
|
| java.lang.Object org.openlaszlo.servlets.LoadCount
LoadCount | public class LoadCount (Code) | | Thread-safe class to monitor load count. Displays:
|
Inner Class :public class LoadInfo | |
Constructor Summary | |
public | LoadCount() Construct a load count with 60 second sampling. | public | LoadCount(int secsPerSample) Construct a load count with a user-defined sampling interval. |
Method Summary | |
public synchronized void | decrement(int t) Increment load count for the current sample interval giving it a time. | public synchronized LoadInfo | getLoadInfo() | public synchronized void | increment() Increment load count for the current sample interval. | public synchronized void | reset() Clear and reset all values. | public String | toString() See toXML(). | public String | toXML(String tag) Return load information in XML w/o sample interval view. | public synchronized String | toXML(String tag, boolean verbose) Return load information in XML. |
LoadCount | public LoadCount()(Code) | | Construct a load count with 60 second sampling.
|
LoadCount | public LoadCount(int secsPerSample)(Code) | | Construct a load count with a user-defined sampling interval. If the
sampling interval is not divisble by 60 seconds, the following values are
used:
- less than 1 => default to 15 secs
- greater than a minute => default to 60 secs
- not divisible into 60 secs => find the next higher divisible
number
Parameters: secsPerSample - the time granularity on how often a load sampleshould be taken. |
decrement | public synchronized void decrement(int t)(Code) | | Increment load count for the current sample interval giving it a time.
Parameters: t - time it took for request to finish. |
getLoadInfo | public synchronized LoadInfo getLoadInfo()(Code) | | |
increment | public synchronized void increment()(Code) | | Increment load count for the current sample interval.
|
reset | public synchronized void reset()(Code) | | Clear and reset all values.
|
toXML | public String toXML(String tag)(Code) | | Return load information in XML w/o sample interval view.
Parameters: tag - tag name |
toXML | public synchronized String toXML(String tag, boolean verbose)(Code) | | Return load information in XML.
Parameters: tag - tag name Parameters: verbose - if true, returns information with all samples. |
|
|
|