|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.monitor.jmx.CachingProxyConnectionFactory
public class CachingProxyConnectionFactory
Adds caching to another JMXProxyFactoryConnectionFactory.
Nested Class Summary | |
---|---|
(package private) static class |
CachingProxyConnectionFactory.CacheKey
Encapsulates the unit of information for checking the cache. |
Constructor Summary | |
---|---|
CachingProxyConnectionFactory(JMXProxyConnectionFactory wrappedFactory)
Registers the factory to wrap and initializes connection cache. |
Method Summary | |
---|---|
JMXProxyConnection |
getConnection(java.lang.String server,
int port,
int rmiPort,
java.lang.String userName,
java.lang.String password)
If (server,port,userName) has been seen before, looks up the cached connection associated with these values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingProxyConnectionFactory(JMXProxyConnectionFactory wrappedFactory)
wrappedFactory
- The factory to add caching to.Method Detail |
---|
public JMXProxyConnection getConnection(java.lang.String server, int port, int rmiPort, java.lang.String userName, java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |