Class HostConfigurableSocketFactory
java.lang.Object
org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory
- All Implemented Interfaces:
Serializable,RMIClientSocketFactory,RMIServerSocketFactory
public class HostConfigurableSocketFactory
extends Object
implements RMIServerSocketFactory, RMIClientSocketFactory, Serializable
This Spring depended class allows to control the binding of a RMI Registry to some port and concrete local host, e.g.: Host may be configured with the
NOTE: Please look at ALF-4357 for more information
localhost, 192.168.0.1 etc. -Djava.rmi.server.hostname system propertyNOTE: Please look at ALF-4357 for more information
- Author:
- Dmitry Velichkevich
- See Also:
-
Spring dependenceRMIServerSocketFactoryRMIClientSocketFactory- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServerSocket(int port) createSocket(String host, int port) booleaninthashCode()voidvoidsetRetries(int retries) How many retries to attempt if the socket is in use.voidsetRetryInterval(int retryInterval) How long to wait between retries, in miliseconds?
-
Constructor Details
-
HostConfigurableSocketFactory
public HostConfigurableSocketFactory()
-
-
Method Details
-
setHost
-
setRetries
public void setRetries(int retries) How many retries to attempt if the socket is in use. Default is zero (no retries) -
setRetryInterval
public void setRetryInterval(int retryInterval) How long to wait between retries, in miliseconds? -
createSocket
- Specified by:
createSocketin interfaceRMIClientSocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceRMIServerSocketFactory- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-