dk.netarkivet.monitor.jmx
Class CachingProxyConnectionFactory.CacheKey

java.lang.Object
  extended by dk.netarkivet.monitor.jmx.CachingProxyConnectionFactory.CacheKey
Enclosing class:
CachingProxyConnectionFactory

static class CachingProxyConnectionFactory.CacheKey
extends java.lang.Object

Encapsulates the unit of information for checking the cache. That is, all information used as arguments for the JMXProxyFactoryConnectionFactory.getConnection method.


Field Summary
(package private)  java.lang.String password
           
(package private)  int port
           
(package private)  int rmiPort
           
(package private)  java.lang.String server
           
(package private)  java.lang.String userName
           
 
Constructor Summary
CachingProxyConnectionFactory.CacheKey(java.lang.String server, int port, int rmiPort, java.lang.String userName, java.lang.String password)
          Constructor for this class.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals method, that overrides the Object.equals method.
 int hashCode()
          hashCode method, that overrides the Object.hashCode method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

java.lang.String server

port

int port

rmiPort

int rmiPort

userName

java.lang.String userName

password

java.lang.String password
Constructor Detail

CachingProxyConnectionFactory.CacheKey

public CachingProxyConnectionFactory.CacheKey(java.lang.String server,
                                              int port,
                                              int rmiPort,
                                              java.lang.String userName,
                                              java.lang.String password)
Constructor for this class.

Parameters:
server - The server name.
port - The JMX port number.
rmiPort - The RMI callback number.
userName - The JMX user name.
password - The JMX password.
Method Detail

equals

public boolean equals(java.lang.Object o)
Equals method, that overrides the Object.equals method.

Overrides:
equals in class java.lang.Object
Parameters:
o - anObject
Returns:
true, if o is equal to this object; else false
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
hashCode method, that overrides the Object.hashCode method.

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode for this object
See Also:
Object.hashCode()