|
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 DefaultComponentException
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 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 activationpublic boolean waitTillReady()
OOoLauncherService
waitTillReady in interface OOoLauncherServicepublic Integer getProcessExitCode()
public boolean waitTillReady(int timeOutS)
OOoLauncherService
waitTillReady in interface OOoLauncherServiceprotected boolean isPortFree()
protected com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection safeGetConnection()
public boolean isOOoListening()
OOoLauncherService
isOOoListening in interface OOoLauncherServicepublic boolean startOOoAndWaitTillReady()
OOoLauncherService
startOOoAndWaitTillReady in interface OOoLauncherServicepublic boolean startOOoAndWaitTillReady(int timeOutS)
OOoLauncherService
startOOoAndWaitTillReady in interface OOoLauncherServicepublic boolean startOOo()
OOoLauncherService
startOOo in interface OOoLauncherServicepublic boolean stopOooAndWait(int timeOutS)
stopOooAndWait in interface OOoLauncherServicepublic boolean stopOOo()
OOoLauncherService
stopOOo in interface OOoLauncherServicepublic boolean isAvailable()
public boolean isEnabled()
public boolean isConfigured()
OOoLauncherServiceOOoLauncherService is configured correctly
(if a valide OOo installation has been found)
isConfigured in interface OOoLauncherServicepublic boolean canGetConnection()
canGetConnection in interface OOoConnectionManagerpublic com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection getConnection()
getConnection in interface OOoConnectionManagerpublic void releaseConnection(com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection connection)
releaseConnection in interface OOoConnectionManagerpublic 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 | |||||||||