|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.ooserver.daemon.ProcessPool
public class ProcessPool
Pool of ready Open Office server instances
| Constructor Summary | |
|---|---|
ProcessPool(Config config)
Just keeps some configuration for further initialization |
|
| Method Summary | |
|---|---|
void |
append(OfficeProcess item)
append an office process into the ready pool, at the end of the queue |
OfficeProcess[] |
getAll()
Returns an array of all the office instances available, busy or not. |
String |
getStateString()
returns "ready processes count / processes count" |
void |
initializationFinished()
Initialization finished, we keep a reference to all processes in _all |
OfficeProcess |
pop()
Gets the first ready process that entered the pool (also checks if it's responsive) |
int |
size()
Number of ready processes |
void |
terminate()
Ask all office process (ready or not) to terminate |
void |
waitTillReady()
Wait until the process is ready and connected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessPool(Config config)
config - any configuration| Method Detail |
|---|
public OfficeProcess[] getAll()
public void append(OfficeProcess item)
item - the office processpublic void initializationFinished()
public int size()
public void terminate()
public OfficeProcess pop()
public void waitTillReady()
public String getStateString()
|
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||