|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anwrt.ooserver.daemon.Daemon
public class Daemon
Main Open Office daemon class.
There are two entry points :
- you can run it from java using constructors to have one instance
- or using command line (see CommandLine for more informations)
warning if there is no output, do not forget to instantiate the logger,
(ex : Logger.newInstance(new LoggerBasicImpl());) otherwise the logger will not be enabled.
CommandLine
Field Summary | |
---|---|
static float |
VERSION
|
static String |
VERSION_TYPE
|
Constructor Summary | |
---|---|
Daemon(Config config)
Creates a daemon and initialize it. |
|
Daemon(String configPath)
same as Daemon(Config), but the configuration will be read from an xml file; |
Method Summary | |
---|---|
static String |
extractContactInfo(String namevalue)
|
void |
fillProcessPool()
Creates all server instances at once. |
com.sun.star.bridge.XBridgeFactory |
getBridgeFactory()
|
Config |
getConfig()
get daemon current configuration |
com.sun.star.uno.XComponentContext |
getInitialContext()
|
ProcessPool |
getPool()
Get the Open Office server instance manager |
static String |
getVersionString()
returns current version |
boolean |
isShutdowned()
used to know when the daemon called the shutdown method (basically to avoid unnecessary exceptions) |
static void |
main(String[] args)
Command line version of the daemon |
void |
run()
The entry method of the daemon, it calls init and mainLoop methods. |
void |
shutdown()
called to shutdown the daemon (all the terminating code is not included into this method, there might be other code elsewhere such as in run() ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float VERSION
public static final String VERSION_TYPE
Constructor Detail |
---|
public Daemon(Config config)
config
- daemon's configurationpublic Daemon(String configPath)
configPath
- an xml file describing the configurationMethod Detail |
---|
public static String getVersionString()
public ProcessPool getPool()
public com.sun.star.uno.XComponentContext getInitialContext()
public com.sun.star.bridge.XBridgeFactory getBridgeFactory()
public Config getConfig()
public boolean isShutdowned()
public void shutdown()
public static String extractContactInfo(String namevalue)
public void fillProcessPool()
public void run()
public static void main(String[] args)
args
- described in CommandLineCommandLine
|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |