Class EdalRmiSocketFactory

  • All Implemented Interfaces:
    java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory

    public class EdalRmiSocketFactory
    extends java.rmi.server.RMISocketFactory
    eDAL specific RMISocketFactory to define a constant data port.
    • Constructor Summary

      Constructors 
      Constructor Description
      EdalRmiSocketFactory()
      construct a new FixedPortRMISocketFactory with standard port 1098
      EdalRmiSocketFactory​(int port)
      construct a new FixedPortRMISocketFactory
    • Method Summary

      Modifier and Type Method Description
      java.net.ServerSocket createServerSocket​(int port)
      java.net.Socket createSocket​(java.lang.String host, int port)
      • Methods inherited from class java.rmi.server.RMISocketFactory

        getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
      • Methods inherited from class java.lang.Object

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

      • EdalRmiSocketFactory

        public EdalRmiSocketFactory()
        construct a new FixedPortRMISocketFactory with standard port 1098
      • EdalRmiSocketFactory

        public EdalRmiSocketFactory​(int port)
        construct a new FixedPortRMISocketFactory
        Parameters:
        port - the fixed RMI data port to be used
    • 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
        Specified by:
        createSocket in class java.rmi.server.RMISocketFactory
        Throws:
        java.io.IOException
      • createServerSocket

        public java.net.ServerSocket createServerSocket​(int port)
                                                 throws java.io.IOException
        Specified by:
        createServerSocket in interface java.rmi.server.RMIServerSocketFactory
        Specified by:
        createServerSocket in class java.rmi.server.RMISocketFactory
        Throws:
        java.io.IOException