public class HostConfigurableSocketFactory extends Object implements RMIServerSocketFactory, RMIClientSocketFactory, Serializable
localhost, 192.168.0.1 etc. -Djava.rmi.server.hostname system propertySpring dependence,
RMIServerSocketFactory,
RMIClientSocketFactory,
Serialized Form| Constructor and Description |
|---|
HostConfigurableSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port) |
Socket |
createSocket(String host,
int port) |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setHost(String host) |
void |
setRetries(int retries)
How many retries to attempt if the socket is in use.
|
void |
setRetryInterval(int retryInterval)
How long to wait between retries, in miliseconds?
|
public void setHost(String host)
public void setRetries(int retries)
public void setRetryInterval(int retryInterval)
public Socket createSocket(String host, int port) throws IOException
createSocket in interface RMIClientSocketFactoryIOExceptionpublic ServerSocket createServerSocket(int port) throws IOException
createServerSocket in interface RMIServerSocketFactoryIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.