|
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.ooolauncher.OOoLauncherComponent
public class OOoLauncherComponent
Nested Class Summary | |
---|---|
protected class |
OOoLauncherComponent.OOoConnectorThread
|
Field Summary | |
---|---|
protected Boolean |
canGetConnection
|
protected static String |
CONFIG_EP
|
protected OOoConfigHelper |
configHelper
|
protected int |
connUsageNb
|
protected OOoLauncherDescriptor |
descriptor
|
protected boolean |
failedToConnect
|
protected Log |
log
|
protected static int |
maxConnUsage
|
protected Process |
OOoProcess
|
protected com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection |
sharedConnection
|
protected boolean |
started
|
Constructor Summary | |
---|---|
OOoLauncherComponent()
|
Method Summary | |
---|---|
void |
activate(ComponentContext context)
Activates the component. |
boolean |
canGetConnection()
|
void |
deactivate(ComponentContext context)
Deactivates the component. |
void |
frameworkEvent(org.osgi.framework.FrameworkEvent event)
|
protected OOoConfigHelper |
getConfigHelper()
|
com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection |
getConnection()
|
OOoLauncherDescriptor |
getDescriptor()
|
Integer |
getProcessExitCode()
|
boolean |
isAvailable()
|
boolean |
isConfigured()
Tells if OOoLauncherService is configured correctly
(if a valide OOo installation has been found) |
boolean |
isEnabled()
|
boolean |
isOOoLaunched()
Tells if OOo server has been started by the launcher |
boolean |
isOOoListening()
Tells if an OOo server is listening on target port |
protected boolean |
isPortFree()
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
releaseConnection(com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection connection)
|
protected com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection |
safeGetConnection()
|
boolean |
startOOo()
Starts the OOo server process |
boolean |
startOOoAndWaitTillReady()
Starts the OOo server process and wait till ready to accept connection |
boolean |
startOOoAndWaitTillReady(int timeOutS)
Starts the OOo server process and wait till ready to accept connection |
boolean |
stopOOo()
Stops the OOo server process |
boolean |
stopOooAndWait(int timeOutS)
|
boolean |
waitTillReady()
Blocks until OOo server is ready to accept connections |
boolean |
waitTillReady(int timeOutS)
Blocks until OOo server is ready to accept connections |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
getAdapter, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static String CONFIG_EP
protected OOoLauncherDescriptor descriptor
protected OOoConfigHelper configHelper
protected Log log
protected Process OOoProcess
protected boolean started
protected int connUsageNb
protected static final int maxConnUsage
protected boolean failedToConnect
protected Boolean canGetConnection
protected com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection sharedConnection
Constructor Detail |
---|
public OOoLauncherComponent()
Method Detail |
---|
public OOoLauncherDescriptor getDescriptor()
protected OOoConfigHelper getConfigHelper()
public boolean isOOoLaunched()
OOoLauncherService
isOOoLaunched
in interface OOoLauncherService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public 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 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 boolean waitTillReady()
OOoLauncherService
waitTillReady
in interface OOoLauncherService
public Integer getProcessExitCode()
public boolean waitTillReady(int timeOutS)
OOoLauncherService
waitTillReady
in interface OOoLauncherService
protected boolean isPortFree()
protected com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection safeGetConnection()
public boolean isOOoListening()
OOoLauncherService
isOOoListening
in interface OOoLauncherService
public boolean startOOoAndWaitTillReady()
OOoLauncherService
startOOoAndWaitTillReady
in interface OOoLauncherService
public boolean startOOoAndWaitTillReady(int timeOutS)
OOoLauncherService
startOOoAndWaitTillReady
in interface OOoLauncherService
public boolean startOOo()
OOoLauncherService
startOOo
in interface OOoLauncherService
public boolean stopOooAndWait(int timeOutS)
stopOooAndWait
in interface OOoLauncherService
public boolean stopOOo()
OOoLauncherService
stopOOo
in interface OOoLauncherService
public boolean isAvailable()
public boolean isEnabled()
public boolean isConfigured()
OOoLauncherService
OOoLauncherService
is configured correctly
(if a valide OOo installation has been found)
isConfigured
in interface OOoLauncherService
public boolean canGetConnection()
canGetConnection
in interface OOoConnectionManager
public com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection getConnection()
getConnection
in interface OOoConnectionManager
public void releaseConnection(com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection connection)
releaseConnection
in interface OOoConnectionManager
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 |