|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.convert.oooserver.OOoDaemonManagerComponent
public class OOoDaemonManagerComponent
| Nested Class Summary | |
|---|---|
protected class |
OOoDaemonManagerComponent.ThreadExceptionHandler
|
| Field Summary | |
|---|---|
protected static boolean |
configured
|
protected static Config |
daemonConfig
|
protected static int |
MAX_TRY
|
protected static Thread |
runner
|
protected static String |
SERVER_CONFIG_EP
|
protected static OOoServerDescriptor |
serverDescriptor
|
protected boolean |
started
|
| Constructor Summary | |
|---|---|
OOoDaemonManagerComponent()
|
|
| Method Summary | |
|---|---|
void |
activate(ComponentContext context)
Activates the component. |
void |
deactivate(ComponentContext context)
Deactivates the component. |
void |
frameworkEvent(org.osgi.framework.FrameworkEvent event)
Startup listener. |
int |
getNbWorkers()
|
protected static Config |
getOrBuildConfig()
|
protected boolean |
isAvailable()
|
boolean |
isConfigured()
|
boolean |
isEnabled()
|
boolean |
isRunning()
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
int |
startDaemon()
Starts the daemon and returns immediately. |
boolean |
startDaemonAndWaitUntilReady()
Starts the Daemon and wait until Daemon is ready to accept calls. |
void |
stopDaemon()
Stops the Daemon and returns immediately. |
boolean |
stopDaemonAndWaitForCompletion()
Stops the Daemon and wait until it exists. |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
getAdapter, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Thread runner
protected static OOoServerDescriptor serverDescriptor
protected static Config daemonConfig
protected static boolean configured
protected static String SERVER_CONFIG_EP
protected static int MAX_TRY
protected boolean started
| Constructor Detail |
|---|
public OOoDaemonManagerComponent()
| Method Detail |
|---|
public void deactivate(ComponentContext context)
throws Exception
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime context
Exception - if an error occurs during activation
public void activate(ComponentContext context)
throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime context
Exception - if an error occurs during activation
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
registerContribution in class DefaultComponentException
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
unregisterContribution in class DefaultComponentExceptionprotected static Config getOrBuildConfig()
public boolean isConfigured()
isConfigured in interface OOoDaemonServicepublic boolean isEnabled()
isEnabled in interface OOoDaemonServiceprotected boolean isAvailable()
public boolean isRunning()
isRunning in interface OOoDaemonServicepublic int startDaemon()
OOoDaemonService
startDaemon in interface OOoDaemonServicepublic boolean startDaemonAndWaitUntilReady()
OOoDaemonService
startDaemonAndWaitUntilReady in interface OOoDaemonServicepublic void stopDaemon()
OOoDaemonService
stopDaemon in interface OOoDaemonServicepublic boolean stopDaemonAndWaitForCompletion()
OOoDaemonService
stopDaemonAndWaitForCompletion in interface OOoDaemonServicepublic int getNbWorkers()
getNbWorkers in interface OOoDaemonServicepublic void frameworkEvent(org.osgi.framework.FrameworkEvent event)
frameworkEvent in interface org.osgi.framework.FrameworkListener
|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||