org.starhope.catullus
Class GaiusValeriusCatullus.LocalServerSocketFactory
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
private final String host
- the local hostname
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
createServerSocket
public ServerSocket createServerSocket(int localPort)
throws IOException
- Specified by:
createServerSocket
in interface RMIServerSocketFactory
- Throws:
IOException
- See Also:
RMIServerSocketFactory.createServerSocket(int)