|
|||||||||||
| 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. This Factory is running only on TDI Server side.
| Constructor Summary | |
|---|---|
RMISocketFactory(Vector<String> aHosts)
Constructor with two parameters. |
|
RMISocketFactory(Vector<String> aHosts,
BindAddressPolicy bindAddrPol)
Constructor with two parameters. |
|
| Method Summary | |
|---|---|
static boolean |
allowConnection()
Verifies access of the socket associated with the current thread to this RMISocketFactory. |
ServerSocket |
createServerSocket(int aPort)
Create a server socket on the specified port. |
Socket |
createSocket(String host,
int port)
Create a client socket connected to the specified host and port. |
protected static void |
setLocalThreadSocket(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(Vector<String> aHosts,
BindAddressPolicy bindAddrPol)
aHosts - Vector object of provided hostsbindAddrPol - Object where bind addresses are obtained frompublic RMISocketFactory(Vector<String> aHosts)
aHosts - Vector object of provided hostsbindAddrPol - Object where bind addresses are obtained from| Method Detail |
|---|
public ServerSocket createServerSocket(int aPort)
throws IOException
createServerSocket in interface RMIServerSocketFactoryaPort - the port. port 0 indicates an anonymous port
IOException - if I/O error occurs during server socket creation
public Socket createSocket(String host,
int port)
throws IOException
createSocket in interface RMIClientSocketFactoryhost - the host nameport - the port number
IOException - if I/O error occurs during socket creationprotected static void setLocalThreadSocket(Socket aSocket)
aSocket - the value to be stored in the current threads' copy of this
thread-local.
public static boolean allowConnection()
throws Exception
RMISocketFactory.
true if the socket has access, otherwise returns
false
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 | ||||||||||