org.starhope.catullus
Class GaiusValeriusCatullus.LocalServerSocketFactory

java.lang.Object
  extended by org.starhope.catullus.GaiusValeriusCatullus.LocalServerSocketFactory
All Implemented Interfaces:
RMIServerSocketFactory
Enclosing class:
GaiusValeriusCatullus

static final class GaiusValeriusCatullus.LocalServerSocketFactory
extends Object
implements RMIServerSocketFactory

a simple factory to emit server sockets for RMI

Author:
brpocock@star-hope.org

Field Summary
private  String host
          the local hostname
 
Constructor Summary
GaiusValeriusCatullus.LocalServerSocketFactory(String thisHost)
          create a GaiusValeriusCatullus.LocalServerSocketFactory for the given host (which should be the local host!)
 
Method Summary
 ServerSocket createServerSocket(int localPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

private final String host
the local hostname

Constructor Detail

GaiusValeriusCatullus.LocalServerSocketFactory

GaiusValeriusCatullus.LocalServerSocketFactory(String thisHost)
create a GaiusValeriusCatullus.LocalServerSocketFactory for the given host (which should be the local host!)

Parameters:
thisHost - the host name
Method Detail

createServerSocket

public ServerSocket createServerSocket(int localPort)
                                throws IOException
Specified by:
createServerSocket in interface RMIServerSocketFactory
Throws:
IOException
See Also:
RMIServerSocketFactory.createServerSocket(int)