Java Doc for PoolingProfile.java in  » ESB » mule » org » mule » config » 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 » ESB » mule » org.mule.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mule.config.PoolingProfile

PoolingProfile
public class PoolingProfile (Code)
PoolingProfile is a configuration object used to define the object pooling parameters for the service it is associated with.


Field Summary
final public static  intDEFAULT_MAX_POOL_ACTIVE
     Controls the maximum number of Mule UMOs that can be borrowed from a service pool at one time.
final public static  intDEFAULT_MAX_POOL_IDLE
     Controls the maximum number of Mule UMOs that can sit idle in the pool at any time.
final public static  longDEFAULT_MAX_POOL_WAIT
    
final public static  intDEFAULT_POOL_EXHAUSTED_ACTION
     Specifies the behaviour of the Mule UMO pool when the pool is exhausted:
  • WHEN_EXHAUSTED_FAIL : will throw a NoSuchElementException
  • WHEN_EXHAUSTED_WAIT : will block (invoke Object.wait(long) until a new or idle object is available.
  • WHEN_EXHAUSTED_GROW : will create a new Mule and return it (essentially making maxActive meaningless).
If a positive maxWait value is supplied, it will block for at most that many milliseconds, after which a NoSuchElementException will be thrown.
final public static  intDEFAULT_POOL_INITIALISATION_POLICY
     Determines how components in a pool should be initialised.
final public static  intINITIALISE_ALL
     Tells the object pool to initialise all components on startup.
final public static  intINITIALISE_NONE
     Tells the object pool not to initialise any components on startup.
final public static  intINITIALISE_ONE
     Tells the object pool only to initialise one service on startup.
final public static  MapPOOL_EXHAUSTED_ACTIONS
    
final public static  MapPOOL_INITIALISATION_POLICIES
    
final public static  intWHEN_EXHAUSTED_BLOCK
    
final public static  intWHEN_EXHAUSTED_FAIL
    
final public static  intWHEN_EXHAUSTED_GROW
    
final public static  intWHEN_EXHAUSTED_WAIT
    

Constructor Summary
public  PoolingProfile()
    
public  PoolingProfile(PoolingProfile pp)
    
public  PoolingProfile(int maxActive, int maxIdle, long maxWait, int exhaustedAction, int initialisationPolicy)
    

Method Summary
public  intgetExhaustedAction()
    
public  intgetInitialisationPolicy()
    
public  intgetMaxActive()
    
public  intgetMaxIdle()
    
public  longgetMaxWait()
    
public  voidsetExhaustedAction(int exhaustedAction)
    
public  voidsetInitialisationPolicy(int policy)
    
public  voidsetMaxActive(int maxActive)
    
public  voidsetMaxIdle(int maxIdle)
    
public  voidsetMaxWait(long maxWait)
    

Field Detail
DEFAULT_MAX_POOL_ACTIVE
final public static int DEFAULT_MAX_POOL_ACTIVE(Code)
Controls the maximum number of Mule UMOs that can be borrowed from a service pool at one time. When non-positive, there is no limit to the number of components that may be active at one time. When maxActive is exceeded, the pool is said to be exhausted. You can specify this value on the descriptor declaration. If none is set this value will be used.



DEFAULT_MAX_POOL_IDLE
final public static int DEFAULT_MAX_POOL_IDLE(Code)
Controls the maximum number of Mule UMOs that can sit idle in the pool at any time. When non-positive, there is no limit to the number of Mule UMOs that may be idle at one time. You can specify this value on the descriptor declaration. If none is set this value will be used. If this value is not set then a system default of '5' will be used.



DEFAULT_MAX_POOL_WAIT
final public static long DEFAULT_MAX_POOL_WAIT(Code)
When the threadPoolExhaustedAction is set to WHEN_EXHAUSTED_WAIT this can specify the maximum milliseconds the pool should block before throwing a NoSuchElementException



DEFAULT_POOL_EXHAUSTED_ACTION
final public static int DEFAULT_POOL_EXHAUSTED_ACTION(Code)
Specifies the behaviour of the Mule UMO pool when the pool is exhausted:
  • WHEN_EXHAUSTED_FAIL : will throw a NoSuchElementException
  • WHEN_EXHAUSTED_WAIT : will block (invoke Object.wait(long) until a new or idle object is available.
  • WHEN_EXHAUSTED_GROW : will create a new Mule and return it (essentially making maxActive meaningless).
If a positive maxWait value is supplied, it will block for at most that many milliseconds, after which a NoSuchElementException will be thrown. If maxWait is non-positive, it will block indefinitely.



DEFAULT_POOL_INITIALISATION_POLICY
final public static int DEFAULT_POOL_INITIALISATION_POLICY(Code)
Determines how components in a pool should be initialised. The possible values are:
  • INITIALISE_NONE : Will not load any components in the pool on startup
  • INITIALISE_ONE : Will load only the first service in the pool on startup
  • INITIALISE_ALL : Will load all components in the pool on startup



INITIALISE_ALL
final public static int INITIALISE_ALL(Code)
Tells the object pool to initialise all components on startup.



INITIALISE_NONE
final public static int INITIALISE_NONE(Code)
Tells the object pool not to initialise any components on startup.



INITIALISE_ONE
final public static int INITIALISE_ONE(Code)
Tells the object pool only to initialise one service on startup.



POOL_EXHAUSTED_ACTIONS
final public static Map POOL_EXHAUSTED_ACTIONS(Code)



POOL_INITIALISATION_POLICIES
final public static Map POOL_INITIALISATION_POLICIES(Code)



WHEN_EXHAUSTED_BLOCK
final public static int WHEN_EXHAUSTED_BLOCK(Code)



WHEN_EXHAUSTED_FAIL
final public static int WHEN_EXHAUSTED_FAIL(Code)



WHEN_EXHAUSTED_GROW
final public static int WHEN_EXHAUSTED_GROW(Code)



WHEN_EXHAUSTED_WAIT
final public static int WHEN_EXHAUSTED_WAIT(Code)




Constructor Detail
PoolingProfile
public PoolingProfile()(Code)



PoolingProfile
public PoolingProfile(PoolingProfile pp)(Code)



PoolingProfile
public PoolingProfile(int maxActive, int maxIdle, long maxWait, int exhaustedAction, int initialisationPolicy)(Code)




Method Detail
getExhaustedAction
public int getExhaustedAction()(Code)
the action when the Mule UMO pool is exhaused for a service



getInitialisationPolicy
public int getInitialisationPolicy()(Code)



getMaxActive
public int getMaxActive()(Code)
max number of Mule UMOs that can be active in a service



getMaxIdle
public int getMaxIdle()(Code)
max number of Mule UMOs that can be idle in a service



getMaxWait
public long getMaxWait()(Code)
time in miilisconds to wait for a Mule UMO to be available in aservice when the pool of Mule UMOs is exhausted and thePoolExhaustedAction is set to WHEN_EXHAUSTED_BLOCK



setExhaustedAction
public void setExhaustedAction(int exhaustedAction)(Code)



setInitialisationPolicy
public void setInitialisationPolicy(int policy)(Code)



setMaxActive
public void setMaxActive(int maxActive)(Code)



setMaxIdle
public void setMaxIdle(int maxIdle)(Code)



setMaxWait
public void setMaxWait(long maxWait)(Code)



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.