|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.anwrt.ooserver.daemon.OfficeProcess
public class OfficeProcess
All the informations and management of an open office server instance
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
OfficeProcess(Daemon daemon,
String userId,
Integer index)
|
Method Summary | |
---|---|
void |
endUsage()
Informs the OfficeProcess that the client has finished using the server instance. |
com.sun.star.bridge.XBridge |
getBridge()
|
String |
getConnectString()
Builds a connection string that is used by oo servers. |
com.sun.star.uno.XComponentContext |
getContext()
|
Integer |
getIndex()
|
Long |
getTimestamp()
The time saved when the usage of the process started |
Integer |
getUsage()
Number of clients that used the process. |
long |
getUsageDuration()
Gets the duration since the client started to use the server instance |
String |
getUserId()
|
boolean |
isResponsive()
Creates a new thread that will test if the process is responsive. |
boolean |
restartWhenNecessary()
Tests if it's necessary to restart an OpenOffice instance (not responsive or maxUsageCount reached). |
void |
start()
Starts a new openOffice server instance represented by a java 'process' |
void |
startUsage()
Informs that a client has started to use the server instance. |
void |
terminate()
Closes the current server instance (killed if not responding) |
boolean |
terminateAndRestart()
Closes the server instance and tries to restart it |
String |
toString()
small string |
String |
toStringDetailed()
large information string |
boolean |
tryConnect()
Try to connect to one instance of open office using the current index of the OfficeProcess object |
boolean |
waitTillReady(Integer timeout)
Requests connection with server instance until it gets it or the timeout is reached |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OfficeProcess(Daemon daemon, String userId, Integer index)
Method Detail |
---|
public Long getTimestamp()
public Integer getUsage()
public String getUserId()
public Integer getIndex()
public com.sun.star.uno.XComponentContext getContext()
public com.sun.star.bridge.XBridge getBridge()
public void start()
start
in class Thread
public void terminate()
public boolean terminateAndRestart()
public boolean tryConnect()
public boolean waitTillReady(Integer timeout)
timeout
- try to connect in the given timeout, the method returns if the timeout
is reached
public void startUsage()
public long getUsageDuration()
public void endUsage()
public boolean isResponsive()
public boolean restartWhenNecessary()
public String getConnectString()
public String toString()
toString
in class Thread
Thread.toString()
public String toStringDetailed()
|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |