|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.component.ServiceManager
public class ServiceManager
The main class. It contains the main method, which is called on startup. The following steps are performed:
| Constructor Summary | |
|---|---|
ServiceManager()
|
|
| Method Summary | |
|---|---|
static Service |
addService(java.lang.String classname,
java.lang.String id)
Add a class to the services, the class is loaded, teh default contructor is called and the startup() method is called. |
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()
|
static boolean |
isStandalone()
|
static void |
main(java.lang.String[] args)
|
static void |
main(java.lang.String conffile,
boolean logOnConsole)
|
static void |
reconfigureAll()
|
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
java.lang.Exception
public static void main(java.lang.String conffile,
boolean logOnConsole)
throws java.lang.Exception
java.lang.Exceptionpublic static Service addService(java.lang.String classname, java.lang.String id)
public static void shutdownService(java.lang.String[] args)
throws ApplicationException
ApplicationExceptionpublic static void shutdown(int status)
status - 0='Stop server', 2='Restart server'
public static void shutdown(int status,
int delayMS)
public static void shutdown()
throws ApplicationException
ApplicationExceptionpublic static Service getService(java.lang.String id)
public static java.util.Date getStartDate()
public static void reconfigureAll()
throws ApplicationException
ApplicationExceptionpublic static boolean isStandalone()
public static boolean isShutdownInProgress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||