|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.server.FarragoAbstractServer
public abstract class FarragoAbstractServer
FarragoAbstractServer is a common base for implementations of Farrago network servers.
| Field Summary | |
|---|---|
protected long |
connectionTimeoutMillis
|
protected PrintWriter |
pw
|
protected static Registry |
rmiRegistry
|
protected int |
rmiRegistryPort
|
protected int |
singleListenerPort
|
| Constructor Summary | |
|---|---|
protected |
FarragoAbstractServer()
Creates a new FarragoServer instance, with console output to System.out. |
protected |
FarragoAbstractServer(PrintWriter pw)
Creates a new FarragoServer instance, with redirected console output. |
| Method Summary | |
|---|---|
protected void |
configureNetwork(FarragoReleaseProperties releaseProps,
FemFarragoConfig config)
|
protected int |
getGroundReferences()
Returns the number of ground references for this server. |
PrintWriter |
getPrintWriter()
|
protected void |
locateRmiRegistry()
Locates the RMI registry. |
void |
runConsole()
Implements console interaction from stdin after the server has successfully started. |
void |
start(FarragoJdbcServerDriver jdbcDriver)
Starts the server. |
protected abstract int |
startNetwork(FarragoJdbcServerDriver jdbcDriver)
Starts the network. |
void |
stopHard()
Stops the server, killing any sessions. |
protected void |
stopNetwork()
Stops the network. |
boolean |
stopSoft()
Stops the server if there are no sessions. |
protected void |
unbindRegistry()
Unbinds all items remaining in the RMI registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Registry rmiRegistry
protected final PrintWriter pw
protected int rmiRegistryPort
protected int singleListenerPort
protected long connectionTimeoutMillis
| Constructor Detail |
|---|
protected FarragoAbstractServer()
protected FarragoAbstractServer(PrintWriter pw)
pw - receives console output| Method Detail |
|---|
protected void configureNetwork(FarragoReleaseProperties releaseProps,
FemFarragoConfig config)
protected abstract int startNetwork(FarragoJdbcServerDriver jdbcDriver)
throws Exception
jdbcDriver - the JDBC driver which will be served to remote clients
Exceptionprotected void stopNetwork()
protected void locateRmiRegistry()
protected void unbindRegistry()
public void start(FarragoJdbcServerDriver jdbcDriver)
throws Exception
jdbcDriver - the JDBC driver which will be served to remote clients
Exceptionpublic boolean stopSoft()
protected int getGroundReferences()
FarragoSessionFactory.specializedInitialization(
FarragoAllocationOwner), may need to alter this value.
public void stopHard()
public PrintWriter getPrintWriter()
public void runConsole()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||