apollo
Class InitSystem
java.lang.Object
|
+--apollo.InitSystem
- public class InitSystem
- extends java.lang.Object
Method Summary |
static void |
createRootPageBroker(ManagerTracker MT,
java.util.Properties prop)
|
static ManagerTracker |
initSystem(javax.servlet.ServletConfig config,
javax.servlet.http.HttpServlet servlet)
This init system will try to locate (through some guessing!) where the properties
file describing how apollo should configure the system is, load it, then initialize the system using it
Ideally, you should locate your properties file in the same directory as the class file of your servlet. |
static ManagerTracker |
initSystem(javax.servlet.ServletConfig config,
java.util.Properties prop)
This initSystem takes the properties file defined by variable prop and initalizes the system
using its properties. |
static ManagerTracker |
initSystemRemoteNode(java.util.Properties prop)
The default initalization routines for a RemoteNode. |
static ManagerTracker |
initSystemServerNode(javax.servlet.ServletConfig config,
java.util.Properties prop)
|
static ManagerTracker |
initSystemStandalone(javax.servlet.ServletConfig config,
java.util.Properties prop)
|
static void |
startDatabaseManager(ManagerTracker MT,
java.util.Properties prop)
|
static void |
startEmailManager(ManagerTracker MT,
java.util.Properties prop)
|
static void |
startJobManager(ManagerTracker MT,
java.util.Properties prop)
|
static void |
startLogManager(ManagerTracker MT,
javax.servlet.ServletConfig config,
java.util.Properties prop)
|
static void |
startPageManager(ManagerTracker MT,
java.util.Properties prop)
|
static void |
startSessionManager(ManagerTracker MT,
java.util.Properties prop)
|
static void |
startStatsManager(ManagerTracker MT,
java.util.Properties prop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitSystem
public InitSystem()
initSystemRemoteNode
public static ManagerTracker initSystemRemoteNode(java.util.Properties prop)
- The default initalization routines for a RemoteNode.
initSystemServerNode
public static ManagerTracker initSystemServerNode(javax.servlet.ServletConfig config,
java.util.Properties prop)
initSystemStandalone
public static ManagerTracker initSystemStandalone(javax.servlet.ServletConfig config,
java.util.Properties prop)
startEmailManager
public static void startEmailManager(ManagerTracker MT,
java.util.Properties prop)
startLogManager
public static void startLogManager(ManagerTracker MT,
javax.servlet.ServletConfig config,
java.util.Properties prop)
startDatabaseManager
public static void startDatabaseManager(ManagerTracker MT,
java.util.Properties prop)
startSessionManager
public static void startSessionManager(ManagerTracker MT,
java.util.Properties prop)
startPageManager
public static void startPageManager(ManagerTracker MT,
java.util.Properties prop)
startStatsManager
public static void startStatsManager(ManagerTracker MT,
java.util.Properties prop)
createRootPageBroker
public static void createRootPageBroker(ManagerTracker MT,
java.util.Properties prop)
startJobManager
public static void startJobManager(ManagerTracker MT,
java.util.Properties prop)
initSystem
public static ManagerTracker initSystem(javax.servlet.ServletConfig config,
javax.servlet.http.HttpServlet servlet)
throws javax.servlet.ServletException
- This init system will try to locate (through some guessing!) where the properties
file describing how apollo should configure the system is, load it, then initialize the system using it
Ideally, you should locate your properties file in the same directory as the class file of your servlet. It should
named the same as the full class name of your servlet, with an extension of .properties.
So, if your servlet is:
org.projectapollo.mysqladmin.MysqlAdmin
Then you should have a this file:
org/projectapollo/mysqladmin/org.projectapollo.mysqladmin.MysqlAdmin.properties
initSystem will use a resource loader, so just shove that properties file into your jar, war, zip file,
or if you're running an extracted copy of the source, just in the directory.
You must pass reference to your servlet in so initSystem can use it as a resrouce loader. So your call to
initSystem should look like:
initSystem(config, this);
from your servlet.
initSystem
public static ManagerTracker initSystem(javax.servlet.ServletConfig config,
java.util.Properties prop)
- This initSystem takes the properties file defined by variable prop and initalizes the system
using its properties.