Java Doc for Statistics.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » dods » statistics » 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 » J2EE » Enhydra Application Framework » org.enhydra.dods.statistics 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.dods.statistics.Statistics

Statistics
public interface Statistics (Code)
This interface provides information about table and its statistics.
author:
   Tanja Jovanovic
author:
   Nenad Vico
author:
   Zorica Suvajdzin
version:
   2.0 15.06.2003.


Field Summary
final public static  intCACHE_STATISTICS
     When there is only data object cache (there are no query caches), statistics is CACHE_STATISTICS (contains information about tables and data object cache).
final public static  intQUERY_CACHE_STATISTICS
     When there are both data object and query caches, statistics is QUERY_CACHE_STATISTICS (contains information about tables, data object and query caches).
final public static  intTABLE_STATISTICS
     When there are no caches (data object and query caches), statistics is TABLE_STATISTICS (contains only information about tables).


Method Summary
public  voidclear()
     Clears DO, simple query and complex query statistics.
public  CacheStatisticsgetCacheStatistics(int type)
     Returns query statistics for : DO (data object) cache when cache has value 0 (value rg.enhydra.dods.cache.CacheConstants.DATA_CACHE) simple query cache when cache has value 1 (value org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) complex query cache when cache has value 2 (org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE)
Parameters:
  type - Value 0 (org.enhydra.dods.cache.CacheConstants.DATA_CACHE)for DO (data object) cache,value 1 (org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) forsimple query cache and value 2(org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE) for complexquery cache.
public  intgetDMLNum()
     Returns number of DML operations (inserts, updates and deletes) performed on the table.
public  intgetDeleteNum()
     Returns number of delete statements performed on the table.
public  intgetInsertNum()
     Returns number of insert statements performed on the table.
public  intgetLazyLoadingNum()
     Returns number of lazy loadings performed on the table.
public  intgetQueryAverageTime()
     Returns average time needed for executing non-oid query. Query by oid is query which "where" clause contains request for DO with specified oid.
public  intgetQueryByOIdAverageTime()
     Returns average time needed for executing query by oid.
public  intgetQueryByOIdNum()
     Returns total number of queries by oid performed on the table.
public  intgetQueryNum()
     Returns total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid.
public  DategetStartTime()
     Returns time when the statistics was started.
public  intgetStatisticsType()
     Returns type of the statistics (TABLE_STATISTICS, CACHE_STATISTICS, or QUERY_CACHE_STATISTICS).
public  DategetStopTime()
     Returns time when the statistics was stopped.
public  intgetUpdateNum()
     Returns number of update statements performed on the table.
public  voidincrementDeleteNum()
     Increases number of delete statements performed on table.
public  voidincrementInsertNum()
     Increases number of insert statements performed on the table.
public  voidincrementLazyLoadingNum()
     Increases number of lazy loadings performed on the table for one.
public  voidincrementQueryByOIdNum()
     Increases total number of queries by oid performed on the table for one.
public  voidincrementQueryNum()
     Increases total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid.
public  voidincrementUpdateNum()
     Increases number of update statements performed on the table.
public  voidsetDeleteNum(int newDeleteNum)
     Sets number of delete statements performed on the table.
public  voidsetInsertNum(int newInsertNum)
     Sets number of insert statements performed on the table.
public  voidsetLazyLoadingNum(int newLazyLoadingNum)
     Sets number of lazy loadings performed on the table.
public  voidsetQueryByOIdNum(int newQueryByOIdNum)
     Sets total number of queries by oid performed on the table.
public  voidsetQueryNum(int newQueryNum)
     Sets total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid.
public  voidsetStartTime(Date startTime)
     Sets time when the statistics starts.
public  voidsetStopTime(Date stopTime)
     Sets time when the statistics stops.
public  voidsetUpdateNum(int newUpdateNum)
     Sets number of update statements performed on the table.
public  voidstopTime()
     Sets stop time to current time.
public  voidupdateQueryAverageTime(int newTime)
     Updates average time needed for executing non-oid queries. Query by oid is query which "where" clause contains request for DO with specified oid.
public  voidupdateQueryByOIdAverageTime(int newTime, int no)
     Updates average time for executing OId queries and increments number of them by paramether no.

Field Detail
CACHE_STATISTICS
final public static int CACHE_STATISTICS(Code)
When there is only data object cache (there are no query caches), statistics is CACHE_STATISTICS (contains information about tables and data object cache).



QUERY_CACHE_STATISTICS
final public static int QUERY_CACHE_STATISTICS(Code)
When there are both data object and query caches, statistics is QUERY_CACHE_STATISTICS (contains information about tables, data object and query caches).



TABLE_STATISTICS
final public static int TABLE_STATISTICS(Code)
When there are no caches (data object and query caches), statistics is TABLE_STATISTICS (contains only information about tables).





Method Detail
clear
public void clear()(Code)
Clears DO, simple query and complex query statistics.



getCacheStatistics
public CacheStatistics getCacheStatistics(int type)(Code)
Returns query statistics for : DO (data object) cache when cache has value 0 (value rg.enhydra.dods.cache.CacheConstants.DATA_CACHE) simple query cache when cache has value 1 (value org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) complex query cache when cache has value 2 (org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE)
Parameters:
  type - Value 0 (org.enhydra.dods.cache.CacheConstants.DATA_CACHE)for DO (data object) cache,value 1 (org.enhydra.dods.cache.CacheConstants.SIMPLE_QUERY_CACHE) forsimple query cache and value 2(org.enhydra.dods.cache.CacheConstants.COMPLEX_QUERY_CACHE) for complexquery cache. Query statistics for DO (data object) cache, simple query orcomplex query cache.



getDMLNum
public int getDMLNum()(Code)
Returns number of DML operations (inserts, updates and deletes) performed on the table. Number of DML operations performed on the table.



getDeleteNum
public int getDeleteNum()(Code)
Returns number of delete statements performed on the table. Number of delete statements performed on the table.



getInsertNum
public int getInsertNum()(Code)
Returns number of insert statements performed on the table. Number of insert statements performed on the table.



getLazyLoadingNum
public int getLazyLoadingNum()(Code)
Returns number of lazy loadings performed on the table. Number of lazy loadings performed on the table.



getQueryAverageTime
public int getQueryAverageTime()(Code)
Returns average time needed for executing non-oid query. Query by oid is query which "where" clause contains request for DO with specified oid. Non-oid query is any other query. Average time needed for executing non-oid query.



getQueryByOIdAverageTime
public int getQueryByOIdAverageTime()(Code)
Returns average time needed for executing query by oid. Query by oid is query which "where" clause contains request for DO with specified oid. Average time needed for executing oid query.



getQueryByOIdNum
public int getQueryByOIdNum()(Code)
Returns total number of queries by oid performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid. Total number of queries by oid performed on the table.



getQueryNum
public int getQueryNum()(Code)
Returns total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid. Non-oid query is any other query. Total number of non-oid queries performed on the table.



getStartTime
public Date getStartTime()(Code)
Returns time when the statistics was started. Time when the statistics was started.



getStatisticsType
public int getStatisticsType()(Code)
Returns type of the statistics (TABLE_STATISTICS, CACHE_STATISTICS, or QUERY_CACHE_STATISTICS). Type of statistics (0 if statistics is TABLE_STATISTICS, 1 ifstatistics is CACHE_STATISTICS, or 2 if statistics isQUERY_CACHE_STATISTICS.



getStopTime
public Date getStopTime()(Code)
Returns time when the statistics was stopped. Time when the statistics was stopped.



getUpdateNum
public int getUpdateNum()(Code)
Returns number of update statements performed on the table. Number of update statements performed on the table.



incrementDeleteNum
public void incrementDeleteNum()(Code)
Increases number of delete statements performed on table.



incrementInsertNum
public void incrementInsertNum()(Code)
Increases number of insert statements performed on the table.



incrementLazyLoadingNum
public void incrementLazyLoadingNum()(Code)
Increases number of lazy loadings performed on the table for one.



incrementQueryByOIdNum
public void incrementQueryByOIdNum()(Code)
Increases total number of queries by oid performed on the table for one. Query by oid is query which "where" clause contains request for DO with specified oid.



incrementQueryNum
public void incrementQueryNum()(Code)
Increases total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid. Non-oid query is any other query.



incrementUpdateNum
public void incrementUpdateNum()(Code)
Increases number of update statements performed on the table.



setDeleteNum
public void setDeleteNum(int newDeleteNum)(Code)
Sets number of delete statements performed on the table.
Parameters:
  newDeleteNum - New number of delete statements performed on thetable.



setInsertNum
public void setInsertNum(int newInsertNum)(Code)
Sets number of insert statements performed on the table.
Parameters:
  newInsertNum - New number of insert statements performed on thetable.



setLazyLoadingNum
public void setLazyLoadingNum(int newLazyLoadingNum)(Code)
Sets number of lazy loadings performed on the table.
Parameters:
  newLazyLoadingNum - New number of lazy loadings performed on thetable.



setQueryByOIdNum
public void setQueryByOIdNum(int newQueryByOIdNum)(Code)
Sets total number of queries by oid performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid.
Parameters:
  newQueryByOIdNum - New total number of queries by oid performed onthe table.



setQueryNum
public void setQueryNum(int newQueryNum)(Code)
Sets total number of non-oid queries performed on the table. Query by oid is query which "where" clause contains request for DO with specified oid. Non-oid query is any other query.
Parameters:
  newQueryNum - New total number of non-oid queries performed onthe table.



setStartTime
public void setStartTime(Date startTime)(Code)
Sets time when the statistics starts.
Parameters:
  startTime - Time when the statistics starts.



setStopTime
public void setStopTime(Date stopTime)(Code)
Sets time when the statistics stops.
Parameters:
  stopTime - time when the statistics stops.



setUpdateNum
public void setUpdateNum(int newUpdateNum)(Code)
Sets number of update statements performed on the table.
Parameters:
  newUpdateNum - New number of update statements performed on thetable.



stopTime
public void stopTime()(Code)
Sets stop time to current time.



updateQueryAverageTime
public void updateQueryAverageTime(int newTime)(Code)
Updates average time needed for executing non-oid queries. Query by oid is query which "where" clause contains request for DO with specified oid. Non-oid query is any other query.
Parameters:
  newTime - New query time in miliseconds.



updateQueryByOIdAverageTime
public void updateQueryByOIdAverageTime(int newTime, int no)(Code)
Updates average time for executing OId queries and increments number of them by paramether no. Query by oid is query which "where" clause contains request for DO with specified oid.
Parameters:
  newTime - New query time in miliseconds for no queries by OId.
Parameters:
  no - Number of queries by OId.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.