Java Doc for PooledInvokerProxy.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » invocation » pooled » interfaces » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.invocation.pooled.interfaces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.invocation.pooled.interfaces.PooledInvokerProxy

PooledInvokerProxy
public class PooledInvokerProxy implements Invoker,Externalizable(Code)
Client socket connections are pooled to avoid the overhead of making a connection. RMI seems to do a new connection with each request.
author:
   Bill Burke
author:
   Scott.Stark@jboss.org
version:
   $Revision: 60313 $

Inner Class :protected static class ClientSocket implements HandshakeCompletedListener

Field Summary
public static  intMAX_RETRIES
    
protected  ServerAddressaddress
    
final protected static  MapconnectionPools
    
public static  longdeserializeTime
    
public static  longgetSocketTime
    
protected  intmaxPoolSize
    
protected  LinkedListpool
     Pool for this invoker.
public static  longreadTime
    
protected  intretryCount
    
public static  longserializeTime
    
protected static  TransactionPropagationContextFactorytpcFactory
     Factory for transaction propagation contexts.
public static  longusedPooled
    
public static  longwriteTime
    

Constructor Summary
public  PooledInvokerProxy()
     Exposed for externalization.
public  PooledInvokerProxy(ServerAddress sa, int maxPoolSize)
     Create a new Proxy.
public  PooledInvokerProxy(ServerAddress sa, int maxPoolSize, int retryCount)
    

Method Summary
public static  voidclearPool(ServerAddress sa)
     Close all sockets in a specific pool.
public static  voidclearPools()
    
public static  voidclearStats()
    
protected  ClientSocketfirstConnection()
    
protected  ClientSocketgetConnection()
    
public static  longgetInUseCount()
    
public  longgetPoolCount()
    
protected  ClientSocketgetPooledConnection()
    
public  StringgetServerHostName()
     The name of of the server.
public static  longgetSocketCloseCount()
    
public static  longgetSocketConnectCount()
    
public static  intgetTotalPoolCount()
    
public  ObjectgetTransactionPropagationContext()
    
public static  longgetUsedPooled()
    
protected  voidinitPool()
    
public  Objectinvoke(Invocation invocation)
     The invocation on the delegate, calls the right invoker.
public  voidreadExternal(ObjectInput in)
    
protected  booleanreturnConnection(ClientSocket socket)
    
public static  voidsetTPCFactory(TransactionPropagationContextFactory tpcf)
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
MAX_RETRIES
public static int MAX_RETRIES(Code)
Set number of retries in getSocket method



address
protected ServerAddress address(Code)
connection information



connectionPools
final protected static Map connectionPools(Code)
A class wide pool Map>



deserializeTime
public static long deserializeTime(Code)



getSocketTime
public static long getSocketTime(Code)



maxPoolSize
protected int maxPoolSize(Code)



pool
protected LinkedList pool(Code)
Pool for this invoker. This is shared between all instances of proxies attached to a specific invoker This should not be serializable, but is for backward compatibility.



readTime
public static long readTime(Code)



retryCount
protected int retryCount(Code)
The number of times to retry after seeing a ConnectionException



serializeTime
public static long serializeTime(Code)



tpcFactory
protected static TransactionPropagationContextFactory tpcFactory(Code)
Factory for transaction propagation contexts.



usedPooled
public static long usedPooled(Code)
The number of times a connection has been obtained from a pool



writeTime
public static long writeTime(Code)




Constructor Detail
PooledInvokerProxy
public PooledInvokerProxy()(Code)
Exposed for externalization.



PooledInvokerProxy
public PooledInvokerProxy(ServerAddress sa, int maxPoolSize)(Code)
Create a new Proxy.



PooledInvokerProxy
public PooledInvokerProxy(ServerAddress sa, int maxPoolSize, int retryCount)(Code)




Method Detail
clearPool
public static void clearPool(ServerAddress sa)(Code)
Close all sockets in a specific pool.



clearPools
public static void clearPools()(Code)
Close all sockets in all pools



clearStats
public static void clearStats()(Code)
Clear all class level stats



firstConnection
protected ClientSocket firstConnection()(Code)



getConnection
protected ClientSocket getConnection() throws Exception(Code)



getInUseCount
public static long getInUseCount()(Code)
the active number of client connections



getPoolCount
public long getPoolCount()(Code)
the proxy local pool count



getPooledConnection
protected ClientSocket getPooledConnection()(Code)



getServerHostName
public String getServerHostName() throws Exception(Code)
The name of of the server.



getSocketCloseCount
public static long getSocketCloseCount()(Code)



getSocketConnectCount
public static long getSocketConnectCount()(Code)



getTotalPoolCount
public static int getTotalPoolCount()(Code)
the total number of pooled connections across all ServerAddresses



getTransactionPropagationContext
public Object getTransactionPropagationContext() throws SystemException(Code)
??? the transaction propagation context of the transactionassociated with the current thread.Returns null if the transaction manager was neverset, or if no transaction is associated with the current thread.



getUsedPooled
public static long getUsedPooled()(Code)
the number of times a connection was returned from a pool



initPool
protected void initPool()(Code)



invoke
public Object invoke(Invocation invocation) throws Exception(Code)
The invocation on the delegate, calls the right invoker. Remote if we are remote, local if we are local.



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



returnConnection
protected boolean returnConnection(ClientSocket socket)(Code)
Return a socket to the pool
Parameters:
  socket - true if socket was added to the pool, false if the poolwas full



setTPCFactory
public static void setTPCFactory(TransactionPropagationContextFactory tpcf)(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Write out the serializable data
Parameters:
  out -
throws:
  IOException -



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.