public class InMemoryServiceFactoryImpl extends AbstractServiceFactory
Constructor and Description |
---|
InMemoryServiceFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleans up the the factory instance.
|
boolean |
encryptTempFiles()
Returns
false , do not encrypt temporary files. |
long |
getMaxContentSize()
Returns a max size of 4 GiB.
|
int |
getMemoryThreshold()
Returns a threshold of 4 MiB.
|
CmisService |
getService(CallContext context)
Returns a
CmisService object for the given CallContext . |
StoreManager |
getStoreManger() |
File |
getTempDirectory()
Returns the Java temp directory.
|
void |
init(Map<String,String> parameters)
Initializes the factory instance.
|
static void |
setOverrideCallContext(CallContext ctx) |
public void init(Map<String,String> parameters)
CmisServiceFactory
init
in interface CmisServiceFactory
init
in class AbstractServiceFactory
public static void setOverrideCallContext(CallContext ctx)
public CmisService getService(CallContext context)
CmisServiceFactory
CmisService
object for the given CallContext
.
When the CmisService
object is not longer needed
CmisService.close()
will be called.getService
in interface CmisServiceFactory
getService
in class AbstractServiceFactory
public File getTempDirectory()
AbstractServiceFactory
getTempDirectory
in interface CmisServiceFactory
getTempDirectory
in class AbstractServiceFactory
public boolean encryptTempFiles()
AbstractServiceFactory
false
, do not encrypt temporary files.encryptTempFiles
in interface CmisServiceFactory
encryptTempFiles
in class AbstractServiceFactory
true
if temporary files should be encrypted,
false
otherwiseCmisServiceFactory.getTempDirectory()
public int getMemoryThreshold()
AbstractServiceFactory
getMemoryThreshold
in interface CmisServiceFactory
getMemoryThreshold
in class AbstractServiceFactory
CmisServiceFactory.getTempDirectory()
public long getMaxContentSize()
AbstractServiceFactory
getMaxContentSize
in interface CmisServiceFactory
getMaxContentSize
in class AbstractServiceFactory
public void destroy()
CmisServiceFactory
destroy
in interface CmisServiceFactory
destroy
in class AbstractServiceFactory
public StoreManager getStoreManger()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.