net.sf.farrago.server
Class FarragoRmiJdbcServer

java.lang.Object
  extended by net.sf.farrago.server.FarragoAbstractServer
      extended by net.sf.farrago.server.FarragoRmiJdbcServer
Direct Known Subclasses:
FarragoServer

public class FarragoRmiJdbcServer
extends FarragoAbstractServer

FarragoRmiJdbcServer is a wrapper which configures an RmiJdbc server to listen for connections on behalf of a Farrago DBMS engine.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/server/FarragoRmiJdbcServer.java#7 $
Author:
John V. Sichi

Field Summary
 
Fields inherited from class net.sf.farrago.server.FarragoAbstractServer
connectionTimeoutMillis, pw, rmiRegistry, rmiRegistryPort, singleListenerPort
 
Constructor Summary
FarragoRmiJdbcServer()
          Creates a new FarragoRmiJdbcServer instance, with console output to System.out.
FarragoRmiJdbcServer(PrintWriter pw)
          Creates a new FarragoRmiJdbcServer instance, with redirected console output.
 
Method Summary
static void main(String[] args)
          Defines the main entry point for the Farrago server.
protected  int startNetwork(FarragoJdbcServerDriver jdbcDriver)
          Starts the network.
 
Methods inherited from class net.sf.farrago.server.FarragoAbstractServer
configureNetwork, getGroundReferences, getPrintWriter, locateRmiRegistry, runConsole, start, stopHard, stopNetwork, stopSoft, unbindRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FarragoRmiJdbcServer

public FarragoRmiJdbcServer()
Creates a new FarragoRmiJdbcServer instance, with console output to System.out. This constructor can be used to embed a FarragoRmiJdbcServer inside of another container such as a J2EE app server.


FarragoRmiJdbcServer

public FarragoRmiJdbcServer(PrintWriter pw)
                     throws Exception
Creates a new FarragoRmiJdbcServer instance, with redirected console output. This constructor can be used to embed a FarragoServer inside of another container such as a J2EE app server.

Parameters:
pw - receives console output
Throws:
Exception
Method Detail

main

public static void main(String[] args)
                 throws Exception
Defines the main entry point for the Farrago server. Customized servers can provide their own which call start() with an extended implementation of FarragoJdbcServerDriver.

Parameters:
args - ignored
Throws:
Exception

startNetwork

protected int startNetwork(FarragoJdbcServerDriver jdbcDriver)
                    throws Exception
Description copied from class: FarragoAbstractServer
Starts the network.

Specified by:
startNetwork in class FarragoAbstractServer
Parameters:
jdbcDriver - the JDBC driver which will be served to remote clients
Returns:
network port on which server is configured to listen
Throws:
Exception