Class ClientSocketFactory
java.lang.Object
javax.net.SocketFactory
ecmwf.common.rmi.ClientSocketFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
The Class SocketWrapper. -
Constructor Summary
ConstructorsConstructorDescriptionClientSocketFactory
(SocketConfig config) Instantiates a new client socket factory.ClientSocketFactory
(SocketFactory factory, SocketConfig config) Instantiates a new client socket factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(String host, int port) Creates a new ClientSocket object.createSocket
(String host, int port, InetAddress localHost, int localPort) Creates a new ClientSocket object.createSocket
(InetAddress host, int port) Creates a new ClientSocket object.createSocket
(InetAddress host, int port, InetAddress localHost, int localPort) Creates a new ClientSocket object.getConfiguredWrapper
(Socket socket) Gets the configured wrapper.protected Socket
getWrapper
(Socket socket) Gets the wrapper.void
Update statistics.Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
-
Constructor Details
-
ClientSocketFactory
Instantiates a new client socket factory.- Parameters:
config
- the config
-
ClientSocketFactory
Instantiates a new client socket factory.- Parameters:
factory
- the factoryconfig
- the config
-
-
Method Details
-
updateStatistics
Update statistics.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getWrapper
-
getConfiguredWrapper
Gets the configured wrapper.- Parameters:
socket
- the socket- Returns:
- the configured wrapper
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
createSocket
Creates a new ClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException Creates a new ClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
Creates a new ClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress localHost, int localPort) throws IOException Creates a new ClientSocket object.- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-