|
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
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime context
Exception
- if an error occurs during activationpublic void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime context
Exception
- if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
protected static Config getOrBuildConfig()
public boolean isConfigured()
isConfigured
in interface OOoDaemonService
public boolean isEnabled()
isEnabled
in interface OOoDaemonService
protected boolean isAvailable()
public boolean isRunning()
isRunning
in interface OOoDaemonService
public int startDaemon()
OOoDaemonService
startDaemon
in interface OOoDaemonService
public boolean startDaemonAndWaitUntilReady()
OOoDaemonService
startDaemonAndWaitUntilReady
in interface OOoDaemonService
public void stopDaemon()
OOoDaemonService
stopDaemon
in interface OOoDaemonService
public boolean stopDaemonAndWaitForCompletion()
OOoDaemonService
stopDaemonAndWaitForCompletion
in interface OOoDaemonService
public int getNbWorkers()
getNbWorkers
in interface OOoDaemonService
public 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 |