Java Doc for HArrayPool.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » resource » pool » lib » 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 » JOnAS 4.8.6 » org.objectweb.jonas.resource.pool.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas.resource.pool.lib.HArrayPool

HArrayPool
public class HArrayPool implements Pool(Code)
The class HArrayPool implements a Pool as a HashSet of ManagedConnections, managing free/active resources. Updated to use an LRU list of free resources Author: Eric HARDESTY



Constructor Summary
public  HArrayPool(Logger logger, String jndiname)
    

Method Summary
public synchronized  voidadjust()
     Adjust the pool size, according to poolMax and minSize values.
public synchronized  voidcloseAllConnections()
     Close all connections in the pool when server is shutting down.
public  intgetBusyMaxRecent()
    
public  intgetBusyMinRecent()
    
public  intgetConnectionFailures()
    
public  intgetConnectionLeaks()
    
public  intgetCurrentBusy()
    
public  intgetCurrentOpened()
    
public  intgetCurrentWaiters()
    
public  intgetInitSize()
    
public  intgetJdbcConnLevel()
    
public  StringgetJdbcTestStatement()
    
public  PoolMatchFactorygetMatchFactory()
    
public  intgetMaxAge()
    
public  intgetMaxOpentime()
    
public  intgetMaxSize()
    
public  intgetMaxWaitTime()
    
public  intgetMaxWaiters()
    
public  intgetMinSize()
    
public  intgetOpenedCount()
    
public  intgetRejectedFull()
    
public  intgetRejectedOpen()
    
public  intgetRejectedOther()
    
public  intgetRejectedTimeout()
    
public  ObjectgetResource(Object hints)
    
public synchronized  ObjectgetResource(Object hints, boolean freeListOnly)
    
public  intgetSamplingPeriod()
    
public  intgetServedOpen()
    
public synchronized  intgetSize()
    
public  longgetTimeout()
    
public  intgetWaiterCount()
    
public  intgetWaitersHigh()
    
public  intgetWaitersHighRecent()
    
public  longgetWaitingHigh()
    
public  longgetWaitingHighRecent()
    
public  longgetWaitingTime()
    
 voidprintLists()
    
public  voidrecomputeBusy()
    
public synchronized  voidreleaseResource(Object resource, boolean destroy, boolean adjustment)
    
public  voidsampling()
    
public synchronized  voidsetInitSize(int initsize)
    
public  voidsetJdbcConnLevel(int jdbcConnLevel)
    
public  voidsetJdbcTestStatement(String jdbcTestStatement)
    
public synchronized  voidsetMatchFactory(PoolMatchFactory pmf)
    
public  voidsetMaxAge(int maxAge)
    
public  voidsetMaxOpentime(int mx)
    
public synchronized  voidsetMaxSize(int maxsize)
    
public  voidsetMaxWaitTime(int sec)
    
public  voidsetMaxWaiters(int nb)
    
public synchronized  voidsetMinSize(int minsize)
    
public  voidsetSamplingPeriod(int sec)
    
public synchronized  voidsetTimeout(long crto)
    
public  voidstartMonitor()
    
public synchronized  voidvalidateMCs()
    


Constructor Detail
HArrayPool
public HArrayPool(Logger logger, String jndiname)(Code)
HArrayPool constructor
Parameters:
  logger - Logger for the pool to use




Method Detail
adjust
public synchronized void adjust() throws Exception(Code)
Adjust the pool size, according to poolMax and minSize values. Also remove old connections in the freeList.
throws:
  Exception - if an exception occurs



closeAllConnections
public synchronized void closeAllConnections()(Code)
Close all connections in the pool when server is shutting down.



getBusyMaxRecent
public int getBusyMaxRecent()(Code)
maximum nb of busy connections in last sampling period



getBusyMinRecent
public int getBusyMinRecent()(Code)
minimum nb of busy connections in last sampling period



getConnectionFailures
public int getConnectionFailures()(Code)
int number of connection failures on open



getConnectionLeaks
public int getConnectionLeaks()(Code)
int number of connection leaks



getCurrentBusy
public int getCurrentBusy()(Code)
int number of busy connections



getCurrentOpened
public int getCurrentOpened()(Code)
int number of opened connections



getCurrentWaiters
public int getCurrentWaiters()(Code)
current number of connection waiters



getInitSize
public int getInitSize()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getInitSize



getJdbcConnLevel
public int getJdbcConnLevel()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getJdbcConnLevel



getJdbcTestStatement
public String getJdbcTestStatement()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getJdbcTestStatement



getMatchFactory
public PoolMatchFactory getMatchFactory()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getMatchFactory



getMaxAge
public int getMaxAge()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getMaxAge



getMaxOpentime
public int getMaxOpentime()(Code)
max age for connections (in mns)



getMaxSize
public int getMaxSize()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getMaxSize



getMaxWaitTime
public int getMaxWaitTime()(Code)
waiter timeout in seconds



getMaxWaiters
public int getMaxWaiters()(Code)
max nb of waiters



getMinSize
public int getMinSize()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getMinSize



getOpenedCount
public int getOpenedCount()(Code)
int number of physical jdbc connection opened



getRejectedFull
public int getRejectedFull()(Code)
int number of open calls that were rejected due to waiter overflow



getRejectedOpen
public int getRejectedOpen()(Code)
int number of open calls that were rejected



getRejectedOther
public int getRejectedOther()(Code)
int number of open calls that were rejected



getRejectedTimeout
public int getRejectedTimeout()(Code)
int number of open calls that were rejected by timeout



getResource
public Object getResource(Object hints) throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getResource



getResource
public synchronized Object getResource(Object hints, boolean freeListOnly) throws Exception(Code)



getSamplingPeriod
public int getSamplingPeriod()(Code)
sampling period in sec.



getServedOpen
public int getServedOpen()(Code)
int number of connection served



getSize
public synchronized int getSize()(Code)
Get the size of the pool int size of the pool



getTimeout
public long getTimeout()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.getTimeout



getWaiterCount
public int getWaiterCount()(Code)
total nb of waiters since the datasource creation



getWaitersHigh
public int getWaitersHigh()(Code)
maximum nb of waiters since the datasource creation



getWaitersHighRecent
public int getWaitersHighRecent()(Code)
maximum nb of waiters in last sampling period



getWaitingHigh
public long getWaitingHigh()(Code)
max waiting time since the datasource creation



getWaitingHighRecent
public long getWaitingHighRecent()(Code)
max waiting time in last sampling period



getWaitingTime
public long getWaitingTime()(Code)
total waiting time since the datasource creation



printLists
void printLists()(Code)
Print information about the pool



recomputeBusy
public void recomputeBusy()(Code)
compute current min/max busyConnections



releaseResource
public synchronized void releaseResource(Object resource, boolean destroy, boolean adjustment) throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.releaseResource



sampling
public void sampling() throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.sampling



setInitSize
public synchronized void setInitSize(int initsize) throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setInitSize



setJdbcConnLevel
public void setJdbcConnLevel(int jdbcConnLevel)(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setJdbcConnLevel



setJdbcTestStatement
public void setJdbcTestStatement(String jdbcTestStatement)(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setJdbcTestStatement



setMatchFactory
public synchronized void setMatchFactory(PoolMatchFactory pmf)(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setMatchFactory



setMaxAge
public void setMaxAge(int maxAge)(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setMaxAge



setMaxOpentime
public void setMaxOpentime(int mx)(Code)

Parameters:
  mx - max time of open connection in minutes



setMaxSize
public synchronized void setMaxSize(int maxsize) throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setMaxSize



setMaxWaitTime
public void setMaxWaitTime(int sec)(Code)

Parameters:
  sec - max time to wait for a connection, in seconds



setMaxWaiters
public void setMaxWaiters(int nb)(Code)

Parameters:
  nb - max nb of waiters



setMinSize
public synchronized void setMinSize(int minsize) throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setMinSize



setSamplingPeriod
public void setSamplingPeriod(int sec)(Code)

Parameters:
  sec - sampling period in sec.



setTimeout
public synchronized void setTimeout(long crto)(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.setTimeout



startMonitor
public void startMonitor()(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.startMonitor



validateMCs
public synchronized void validateMCs() throws Exception(Code)

See Also:   org.objectweb.jonas.resource.pool.api.Pool.validateMCs



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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