|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.remote.impl.rmi.RMISocketFactory
public class RMISocketFactory
A wrapper class of RMIServerSocketFactory class. Class used by the RMI to obtain server and client sockets for RMI calls.
Constructor Summary | |
---|---|
RMISocketFactory(java.util.Vector<java.lang.String> aHosts)
Constructor with one parameter. |
Method Summary | |
---|---|
static boolean |
allowConnection()
Verifies access of the socket associated with the current thread to this RMISocketFactory . |
java.net.ServerSocket |
createServerSocket(int aPort)
Create a server socket on the specified port. |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Create a client socket connected to the specified host and port. |
protected static void |
setLocalThreadSocket(java.net.Socket aSocket)
Sets the current thread's copy of this thread-local variable to the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RMISocketFactory(java.util.Vector<java.lang.String> aHosts)
aHosts
- Vector object of provided hostsMethod Detail |
---|
public java.net.ServerSocket createServerSocket(int aPort) throws java.io.IOException
createServerSocket
in interface java.rmi.server.RMIServerSocketFactory
aPort
- the port. port 0 indicates an anonymous port
java.io.IOException
- if I/O error occurs during server socket creationpublic java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in interface java.rmi.server.RMIClientSocketFactory
host
- the host nameport
- the port number
java.io.IOException
- if I/O error occurs during socket creationprotected static void setLocalThreadSocket(java.net.Socket aSocket)
aSocket
- the value to be stored in the current threads' copy of this
thread-local.public static boolean allowConnection() throws java.lang.Exception
RMISocketFactory
.
true
if the socket has access, otherwise returns
false
java.lang.Exception
- if no Socket
is associated with the current
thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |