@ManagedResource(description="LibreOffice instance pool") public class LibreOfficeInstancePool extends ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
Constructor and Description |
---|
LibreOfficeInstancePool()
Initialize an
LibreOfficeInstancePool with default parameters |
LibreOfficeInstancePool(int maxActive,
long maxWait,
int maxIdle,
int maxUsageCount) |
Modifier and Type | Method and Description |
---|---|
protected com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance |
doBorrowObject(File tempFolder)
Borrows a LibreOffice instance that works within the given temporary folder
|
protected void |
doInvalidateObject(com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance obj) |
protected void |
doReturnObject(com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance object) |
protected com.levigo.util.log.Logger |
getLogger() |
int |
getMaxUsageCount() |
protected String |
getName() |
protected org.apache.commons.pool.impl.GenericKeyedObjectPool |
getPool() |
boolean |
isEnableDebug() |
boolean |
isUseXvfb() |
void |
setEnableDebug(boolean enableDebug) |
void |
setMaxUsageCount(int maxUsageCount) |
void |
setUseXvfb(boolean useXvfb) |
afterPropertiesSet, borrowObject, clearOldest, clearPool, clearWaitingTimes, destroy, evictPool, getAvgWaitingTime, getMaxActive, getMaxIdle, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumInvalidated, getNumReturned, getObjectName, getRecentAvgWaitingTime, getRecentMaxWaitingTime, getRecentMinWaitingTime, getTimeBetweenEvictionRunsMillis, invalidateObject, returnObject, setMaxActive, setMaxIdle, setMinEvictableIdleTimeMillis, setMinIdle, setTimeBetweenEvictionRunsMillis
public LibreOfficeInstancePool()
LibreOfficeInstancePool
with default parameterspublic LibreOfficeInstancePool(int maxActive, long maxWait, int maxIdle, int maxUsageCount)
protected com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance doBorrowObject(File tempFolder) throws Exception
doBorrowObject
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
tempFolder
- the temporary folder which LO shall useException
ManagedObjectPool.borrowObject(Object)
protected void doReturnObject(com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance object) throws Exception
doReturnObject
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
Exception
protected void doInvalidateObject(com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance obj) throws Exception
doInvalidateObject
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
Exception
protected String getName()
getName
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
protected com.levigo.util.log.Logger getLogger()
getLogger
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
protected org.apache.commons.pool.impl.GenericKeyedObjectPool getPool()
getPool
in class ManagedObjectPool<File,com.levigo.jadice.server.libreoffice.server.internal.ManagedLibreOfficeInstance>
public boolean isUseXvfb()
public void setUseXvfb(boolean useXvfb)
public boolean isEnableDebug()
public void setEnableDebug(boolean enableDebug)
@ManagedAttribute(description="Maximum number of usages of a LibreOffice instance") public int getMaxUsageCount()
@ManagedAttribute(description="Maximum number of usages of a LibreOffice instance") public void setMaxUsageCount(int maxUsageCount)
Copyright © 2017 levigo holding gmbh. All rights reserved.