|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.component.ServiceManager
public class ServiceManager
The main class. It contains the main method, which is called on startup. Note that in standalone mode the Bootstrap class contains the main method that calls the main method of this class. The following steps are performed:
Constructor Summary | |
---|---|
ServiceManager()
|
Method Summary | |
---|---|
static Service |
addService(java.lang.String id,
Service s)
Add an object to the list of services. |
static Service |
addService(java.lang.String classname,
java.lang.String id)
Add a class to the services, the class is loaded, the default contructor is called and the startup() method is called. |
static void |
closeServerSocketLocker()
|
static Service |
getService(java.lang.String id)
Return the service by id. |
static java.util.Date |
getStartDate()
Return the date of startup. |
static boolean |
isShutdownInProgress()
This method returns true if the shutdown in in progress. |
static boolean |
isStandalone()
Returns true if @enterprise is running standalone (not in an application server). |
static void |
main(java.lang.String[] args)
Main method suitable for starting @enterprise. |
static void |
main(java.lang.String conffile,
boolean logOnConsole,
boolean isStandalone)
Start @enterprise with a configuration file. |
static void |
reconfigureAll()
Calls reconfigure of all services managed by the service manager. |
static void |
setDefaultLocale()
Set the default locale for the whole java process. |
static void |
shutdown()
Shutdown the services, the shutdown() methods of the services are called. |
static void |
shutdown(int status)
This method is called from HTMLAdmin |
static void |
shutdown(int status,
int delayMS)
|
static void |
shutdownService(java.lang.String[] args)
This method is called as stop method when running as JavaService NT service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceManager()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the first argument should contain the path of the configuration file.
additional optional arguments are: -restricted:starts @enterprise in restricted mode
(no non-sysadm logins allowed) and -upgrade: performs @enterprise and applications upgrades. In this
mode, @enterprise stops after performing this upgrades.
java.lang.Exception
public static void main(java.lang.String conffile, boolean logOnConsole, boolean isStandalone) throws java.lang.Exception
conffile
- path to the configurationlogOnConsole
- true if logging should go to the console.
java.lang.Exception
public static void closeServerSocketLocker()
public static void setDefaultLocale()
public static Service addService(java.lang.String id, Service s)
id
- the id for the service tables
- the service objectpublic static Service addService(java.lang.String classname, java.lang.String id)
classname
- the name of the service classid
- the id for the service tablepublic static void shutdownService(java.lang.String[] args)
public static void shutdown(int status)
status
- 0='Stop server', 2='Restart server'public static void shutdown(int status, int delayMS)
public static void shutdown()
public static Service getService(java.lang.String id)
id
- the id of a service.
public static java.util.Date getStartDate()
public static void reconfigureAll()
public static boolean isStandalone()
public static boolean isShutdownInProgress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |