org.objectweb.dream.protocol.channel
Interface ConnectionFactory

All Known Implementing Classes:
ConnectionFactoryImpl

public interface ConnectionFactory

Interface provided by server session factory. A server session factory manage a set of ServerSocket. When an connection is open on one of this server socket, a new server session is created and passed to the protocol component through the ConnectionManager interface.


Field Summary
static String ITF_NAME
          The commonly used name of this interface.
 
Method Summary
 void addServerSocket(ServerSocket serverSocket, IPExportIdentifier identifier)
          Adds a new server socket.
 void removeServerSocket(IPExportIdentifier identifier)
          Removes and closes the server socket associated with the given identifier.
 

Field Detail

ITF_NAME

static final String ITF_NAME
The commonly used name of this interface.

See Also:
Constant Field Values
Method Detail

addServerSocket

void addServerSocket(ServerSocket serverSocket,
                     IPExportIdentifier identifier)
Adds a new server socket.

Parameters:
serverSocket - the server socket.
identifier - the export identifier associated with the server socket.

removeServerSocket

void removeServerSocket(IPExportIdentifier identifier)
                        throws InvalidExportIdentifierException
Removes and closes the server socket associated with the given identifier.

Parameters:
identifier - an identifier of a previously added server socket.
Throws:
InvalidExportIdentifierException - if the given export identifier is unknown.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.