Source Code Cross Referenced for LoadStopwatchReport.java in  » Profiler » stopwatch » com » commsen » stopwatch » reports » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Profiler » stopwatch » com.commsen.stopwatch.reports 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * $Id: LoadStopwatchReport.java,v 1.1 2006/03/01 17:48:05 azzazzel Exp $
03:         *
04:         * Copyright 2006 Commsen International
05:         * 
06:         * Licensed under the Common Public License, Version 1.0 (the "License");
07:         * you may not use this file except in compliance with the License.
08:         * You may obtain a copy of the License at
09:         * 
10:         *      http://www.opensource.org/licenses/cpl1.0.txt
11:         * 
12:         * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13:         * EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS 
14:         * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
15:         *
16:         */
17:        package com.commsen.stopwatch.reports;
18:
19:        /**
20:         * This report contains additional "load" statistics.  
21:         * The value of "load" shows how many instances of the code being measured are running simultaneously.
22:         * This report is udes by  {@link com.commsen.stopwatch.engines.LoadStopwatchEngine} 
23:         *
24:         * @author Milen Dyankov
25:         */
26:        public class LoadStopwatchReport extends DefaultStopwatchReport {
27:
28:            private static final long serialVersionUID = 1L;
29:
30:            private long minLoad;
31:            private long maxLoad;
32:            private long averageLoad;
33:
34:            /**
35:             * @param group
36:             * @param label
37:             * @param count
38:             * @param minTime
39:             * @param maxTime
40:             * @param averageTime
41:             * @param totalTime
42:             * @param minLoad
43:             * @param maxLoad
44:             * @param averageLoad
45:             */
46:            public LoadStopwatchReport(String group, String label, long count,
47:                    long minTime, long maxTime, long averageTime,
48:                    long totalTime, long minLoad, long maxLoad, long averageLoad) {
49:                super (group, label, count, minTime, maxTime, averageTime,
50:                        totalTime);
51:                this .minLoad = minLoad;
52:                this .maxLoad = maxLoad;
53:                this .averageLoad = averageLoad;
54:            }
55:
56:            /**
57:             * Generates string representation of this report
58:             * @see java.lang.Object#toString()
59:             */
60:            public String toString() {
61:                return new StringBuffer(super .toString()).append("  MinLoad=")
62:                        .append(minLoad).append("  AvgLoad=").append(
63:                                averageLoad).append("  MaxLoad=").append(
64:                                maxLoad).toString();
65:            }
66:
67:            /**
68:             * @return Returns the averageLoad.
69:             */
70:            public long getAverageLoad() {
71:                return averageLoad;
72:            }
73:
74:            /**
75:             * @return Returns the maxLoad.
76:             */
77:            public long getMaxLoad() {
78:                return maxLoad;
79:            }
80:
81:            /**
82:             * @return Returns the minLoad.
83:             */
84:            public long getMinLoad() {
85:                return minLoad;
86:            }
87:
88:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.