public class PictureTilingCacheInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
cacheKey |
protected Date |
lastAccessTime |
protected ImageInfo |
originalPictureInfos |
static int |
SHRINK_DOWN_LIMIT_PX |
protected Map<Integer,ImageInfo> |
shrinkedImages |
protected List<Integer> |
shrinkedImagesWidths |
protected String |
syncShrink |
protected Map<String,PictureTiles> |
tilesSet |
protected String |
workingDir |
Constructor and Description |
---|
PictureTilingCacheInfo(String cacheKey,
String workingDir,
String filePath) |
Modifier and Type | Method and Description |
---|---|
void |
addPictureTilesToCache(PictureTiles tiles) |
void |
cleanUp() |
ImageInfo |
getBestSourceImage(int tileWidth,
int tileHeight,
int maxTiles) |
PictureTiles |
getCachedPictureTiles(int tileWidth,
int tileHeight,
int maxTiles) |
long |
getDiskSpaceUsageInBytes() |
protected long |
getFileSize(String path) |
Date |
getLastAccessedTime() |
ImageInfo |
getOriginalPictureInfos() |
String |
getOriginalPicturePath() |
String |
getTilingDir(int tileWidth,
int tileHeight,
int maxTiles) |
String |
getWorkingDir() |
void |
partialCleanUp(long targetDeltaInKB) |
protected void |
updateAccessTime() |
public static int SHRINK_DOWN_LIMIT_PX
protected String workingDir
protected ImageInfo originalPictureInfos
protected Map<Integer,ImageInfo> shrinkedImages
protected List<Integer> shrinkedImagesWidths
protected Map<String,PictureTiles> tilesSet
protected String syncShrink
protected Date lastAccessTime
public PictureTilingCacheInfo(String cacheKey, String workingDir, String filePath) throws CommandNotAvailable, CommandException
CommandNotAvailable
CommandException
protected void updateAccessTime()
public Date getLastAccessedTime()
protected long getFileSize(String path)
public long getDiskSpaceUsageInBytes()
public void addPictureTilesToCache(PictureTiles tiles)
public PictureTiles getCachedPictureTiles(int tileWidth, int tileHeight, int maxTiles)
public String getWorkingDir()
public String getOriginalPicturePath()
public String getTilingDir(int tileWidth, int tileHeight, int maxTiles)
public ImageInfo getBestSourceImage(int tileWidth, int tileHeight, int maxTiles)
public ImageInfo getOriginalPictureInfos()
public void cleanUp()
public void partialCleanUp(long targetDeltaInKB)
Copyright © 2015 Nuxeo SA. All rights reserved.