java.lang.Object | ||
↳ | java.rmi.server.RMISocketFactory | |
↳ | sun.rmi.transport.proxy.RMIMasterSocketFactory |
RMIMasterSocketFactory attempts to create a socket connection to the specified host using successively less efficient mechanisms until one succeeds. If the host is successfully connected to, the factory for the successful mechanism is stored in an internal hash table keyed by the host name, so that future attempts to connect to the same host will automatically use the same mechanism.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
altFactoryList | ordered list of factories to try as alternate connection mechanisms if a direct socket connections fails | ||||||||||
initialFactory | default factory to initally use for direct socket connection |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a RMIMasterSocketFactory object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new server socket.
| |||||||||||
Create a new client socket.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
ordered list of factories to try as alternate connection mechanisms if a direct socket connections fails
default factory to initally use for direct socket connection
Create a RMIMasterSocketFactory object. Establish order of connection mechanisms to attempt on createSocket, if a direct socket connection fails.
Create a new server socket.
port | the port number |
---|
IOException |
---|
Create a new client socket. If we remember connecting to this host successfully before, then use the same factory again. Otherwise, try using a direct socket connection and then the alternate factories in the order specified in altFactoryList.
host | the host name |
---|---|
port | the port number |
IOException |
---|