Class RMIClientSocketFactoryImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.server.RMIClientSocketFactory

    public class RMIClientSocketFactoryImpl
    extends java.lang.Object
    implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable
    This class is used to override the local address the JMX client calculates when trying to connect, which can otherwise be influenced by the system property "java.rmi.server.hostname" in strange and unpredictable ways.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.net.Socket createSocket​(java.lang.String host, int port)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMIClientSocketFactoryImpl

        public RMIClientSocketFactoryImpl​(java.net.InetAddress localAddress)
    • Method Detail

      • createSocket

        public java.net.Socket createSocket​(java.lang.String host,
                                            int port)
                                     throws java.io.IOException
        Specified by:
        createSocket in interface java.rmi.server.RMIClientSocketFactory
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object