public class CachingProxyConnectionFactory extends Object implements JMXProxyConnectionFactory
Constructor and Description |
---|
CachingProxyConnectionFactory(JMXProxyConnectionFactory wrappedFactory)
Registers the factory to wrap and initializes connection cache.
|
Modifier and Type | Method and Description |
---|---|
JMXProxyConnection |
getConnection(String server,
int port,
int rmiPort,
String userName,
String password)
If (server,port,userName) has been seen before, looks up the cached connection associated with these values.
|
public CachingProxyConnectionFactory(JMXProxyConnectionFactory wrappedFactory)
wrappedFactory
- The factory to add caching to.public JMXProxyConnection getConnection(String server, int port, int rmiPort, String userName, String password)
getConnection
in interface JMXProxyConnectionFactory
server
- The name of remote server to connect to.port
- The port to connect to on the remote server.rmiPort
- The RMI-port to use in this connection.userName
- The user name to log in as.password
- The password for the specified user.JMXProxyConnectionFactory.getConnection(String, int, int, String, String)
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.