|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.pooled.interfaces.PooledInvokerProxy
Client socket connections are pooled to avoid the overhead of making a connection. RMI seems to do a new connection with each request.
Nested Class Summary | |
protected static class |
PooledInvokerProxy.ClientSocket (src)
|
Field Summary | |
protected ServerAddress (src) |
address
connection information |
protected static java.util.HashMap |
connectionPools
|
static long |
deserializeTime
|
static long |
getSocketTime
|
static int |
MAX_RETRIES
Set number of retries in getSocket method |
protected int |
maxPoolSize
|
protected java.util.LinkedList |
pool
Pool for this invoker. |
static long |
readTime
|
static long |
serializeTime
|
protected static TransactionPropagationContextFactory (src) |
tpcFactory
Factory for transaction propagation contexts. |
static long |
usedPooled
|
static long |
writeTime
|
Fields inherited from interface org.jboss.invocation.Invoker (src) |
ID |
Constructor Summary | |
PooledInvokerProxy()
Exposed for externalization. |
|
PooledInvokerProxy(ServerAddress (src) sa,
int maxPoolSize)
Create a new Proxy. |
Method Summary | |
static void |
clearPool(ServerAddress (src) sa)
Close all sockets in a specific pool. |
static void |
clearPools()
Close all sockets in all pools |
protected PooledInvokerProxy.ClientSocket (src) |
getConnection()
|
protected PooledInvokerProxy.ClientSocket (src) |
getPooledConnection()
|
java.lang.String |
getServerHostName()
The name of of the server. |
java.lang.Object |
getTransactionPropagationContext()
??? |
protected void |
initPool()
|
java.lang.Object |
invoke(Invocation (src) invocation)
The invocation on the delegate, calls the right invoker. |
void |
readExternal(java.io.ObjectInput in)
Un-externalize this instance. |
static void |
setTPCFactory(TransactionPropagationContextFactory (src) tpcf)
|
void |
writeExternal(java.io.ObjectOutput out)
Externalize this instance and handle obtaining the remoteInvoker stub |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static TransactionPropagationContextFactory (src) tpcFactory
public static long getSocketTime
public static long readTime
public static long writeTime
public static long serializeTime
public static long deserializeTime
public static long usedPooled
public static int MAX_RETRIES
protected static java.util.HashMap connectionPools
protected ServerAddress (src) address
protected java.util.LinkedList pool
protected int maxPoolSize
Constructor Detail |
public PooledInvokerProxy()
public PooledInvokerProxy(ServerAddress (src) sa, int maxPoolSize)
Method Detail |
public static void setTPCFactory(TransactionPropagationContextFactory (src) tpcf)
public static void clearPool(ServerAddress (src) sa)
public static void clearPools()
protected void initPool()
protected PooledInvokerProxy.ClientSocket (src) getConnection() throws java.lang.Exception
java.lang.Exception
protected PooledInvokerProxy.ClientSocket (src) getPooledConnection()
public java.lang.String getServerHostName() throws java.lang.Exception
getServerHostName
in interface Invoker (src)
java.lang.Exception
public java.lang.Object getTransactionPropagationContext() throws SystemException (src)
null
if the transaction manager was never
set, or if no transaction is associated with the current thread.
SystemException (src)
public java.lang.Object invoke(Invocation (src) invocation) throws java.lang.Exception
invoke
in interface Invoker (src)
invocation
- A pointer to the invocation object
java.lang.Exception
- Failed to invoke method.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |