|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.TimerTask
|
+--com.zwares.base.monitor.PerformanceMonitor
This class is responsible for monitoring performance information.
| Constructor Summary | |
PerformanceMonitor()
Default constructor, prints output to the diplay. |
|
PerformanceMonitor(long timeInterval)
Constructs performance monitoring Object. |
|
PerformanceMonitor(long timeInterval,
java.lang.String outputFileName)
Constructs a performance monitoring object. |
|
PerformanceMonitor(java.lang.String outputFileName)
Constructs a performance monitoring object. |
|
| Method Summary | |
void |
finalize()
Cleanup resources |
void |
run()
Collect and store memory and Thread statstics. |
void |
stopMonitoring()
Stop performance monitoring. |
java.lang.String |
toString()
Returns the monitor statics as String. |
| Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PerformanceMonitor()
public PerformanceMonitor(long timeInterval)
timeInterval - time interval in seconds.public PerformanceMonitor(java.lang.String outputFileName)
outputFileName - file name to write to.
public PerformanceMonitor(long timeInterval,
java.lang.String outputFileName)
outputFileName - file name to write to.timeInterval - time interval in seconds.| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic void stopMonitoring()
public void finalize()
finalize in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||