ch.systemsx.cisd.openbis.dss.generic.shared.content
Class ContentCache

java.lang.Object
  extended by ch.systemsx.cisd.openbis.dss.generic.shared.content.ContentCache
All Implemented Interfaces:
IContentCache, org.springframework.beans.factory.InitializingBean

public class ContentCache
extends java.lang.Object
implements IContentCache, org.springframework.beans.factory.InitializingBean

Cache for files remotely retrieved from Data Store Servers.


Field Summary
static java.lang.String CACHE_WORKSPACE_FOLDER_KEY
           
static java.lang.String CACHE_WORKSPACE_MAX_SIZE_KEY
           
static java.lang.String CACHE_WORKSPACE_MIN_KEEPING_TIME_KEY
           
 
Method Summary
 void afterPropertiesSet()
           
static ContentCache create(java.util.Properties properties)
           
 java.io.File getFile(java.lang.String sessionToken, ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation dataSetLocation, DataSetPathInfo path)
           
 java.io.InputStream getInputStream(java.lang.String sessionToken, ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation dataSetLocation, DataSetPathInfo path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_WORKSPACE_FOLDER_KEY

public static final java.lang.String CACHE_WORKSPACE_FOLDER_KEY
See Also:
Constant Field Values

CACHE_WORKSPACE_MAX_SIZE_KEY

public static final java.lang.String CACHE_WORKSPACE_MAX_SIZE_KEY
See Also:
Constant Field Values

CACHE_WORKSPACE_MIN_KEEPING_TIME_KEY

public static final java.lang.String CACHE_WORKSPACE_MIN_KEEPING_TIME_KEY
See Also:
Constant Field Values
Method Detail

create

public static ContentCache create(java.util.Properties properties)

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

getFile

public java.io.File getFile(java.lang.String sessionToken,
                            ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation dataSetLocation,
                            DataSetPathInfo path)
Specified by:
getFile in interface IContentCache

getInputStream

public java.io.InputStream getInputStream(java.lang.String sessionToken,
                                          ch.systemsx.cisd.openbis.generic.shared.basic.dto.IDatasetLocation dataSetLocation,
                                          DataSetPathInfo path)
Specified by:
getInputStream in interface IContentCache