| java.lang.Object org.apache.geronimo.yoko.SocketFactory
SocketFactory | public class SocketFactory implements ConnectionHelper(Code) | | Socket factory instance used to interface openejb2
with the Yoko ORB. Also enables the ORB for
SSL-type connections.
version: $Revision: 505035 $ $Date: 2007-02-08 16:01:06 -0500 (Thu, 08 Feb 2007) $ |
Method Summary | |
public Socket | createSelfConnection(InetAddress address, int port) Create a loopback connection to the hosting
ORB.
Parameters: address - The address information for the server. Parameters: port - The target port. | public ServerSocket | createServerSocket(int port, int backlog) Create a server socket listening on the given port.
Parameters: port - The target listening port. Parameters: backlog - The desired backlog value. | public ServerSocket | createServerSocket(int port, int backlog, InetAddress address) Create a server socket for this connection.
Parameters: port - The target listener port. Parameters: backlog - The requested backlog value for the connection. Parameters: address - The host address information we're publishing under. | public Socket | createSocket(IOR ior, Policy[] policies, InetAddress address, int port) Create a client socket of the appropriate
type using the provided IOR and Policy information.
Parameters: ior - The target IOR of the connection. Parameters: policies - Policies in effect for this ORB. Parameters: address - The target address of the connection. Parameters: port - The connection port. | public void | init(ORB orb, String configName) Initialize the socket factory instance. |
SocketFactory | public SocketFactory()(Code) | | |
createSelfConnection | public Socket createSelfConnection(InetAddress address, int port) throws IOException(Code) | | Create a loopback connection to the hosting
ORB.
Parameters: address - The address information for the server. Parameters: port - The target port. An appropriately configured socket based on thelistener characteristics. exception: IOException - exception: ConnectException - |
createServerSocket | public ServerSocket createServerSocket(int port, int backlog) throws IOException(Code) | | Create a server socket listening on the given port.
Parameters: port - The target listening port. Parameters: backlog - The desired backlog value. An appropriate server socket for this connection. exception: IOException - exception: ConnectException - |
createServerSocket | public ServerSocket createServerSocket(int port, int backlog, InetAddress address) throws IOException(Code) | | Create a server socket for this connection.
Parameters: port - The target listener port. Parameters: backlog - The requested backlog value for the connection. Parameters: address - The host address information we're publishing under. An appropriately configured ServerSocket for thisconnection. exception: IOException - exception: ConnectException - |
createSocket | public Socket createSocket(IOR ior, Policy[] policies, InetAddress address, int port) throws IOException(Code) | | Create a client socket of the appropriate
type using the provided IOR and Policy information.
Parameters: ior - The target IOR of the connection. Parameters: policies - Policies in effect for this ORB. Parameters: address - The target address of the connection. Parameters: port - The connection port. A Socket (either plain or SSL) configured for connectionto the target. exception: IOException - exception: ConnectException - |
init | public void init(ORB orb, String configName)(Code) | | Initialize the socket factory instance.
Parameters: orb - The hosting ORB. Parameters: configName - The initialization parameter passed to the socket factor.This contains the abstract name of our configurator,which we retrieve from a registry. |
|
|