View Javadoc

1   package org.sourceforge.jemm.comm.connection;
2   
3   /**
4    * A rpc server side connection factory.
5    *  
6    * <i><P>Released under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License V2.0 license</a> 
7    * by the <a href="http://jemm.sourceforge.net">JEMM Project</a></i>
8    *
9    * @author Rory Graves
10   */
11  public interface ServerConnectionFactory {
12  	/**
13  	 * Initialise the connection factory
14  	 * @throws ConnectionException If an error is generated whilst initialising the factory
15  	 */
16  	void initialise() throws ConnectionException;
17  	
18  	Connection getClientConnection() throws ConnectionException;
19  	
20  	/** 
21  	 * Shuts down the connection factory
22  	 * @throws ConnectionException 
23  	 */
24  	void close() throws ConnectionException;
25  }