org.gcube.application.framework.contentmanagement.cache.factories
Class ThumbnailCacheEntryFactory

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.cache.factories.ThumbnailCacheEntryFactory
All Implemented Interfaces:
net.sf.ehcache.constructs.blocking.CacheEntryFactory

public class ThumbnailCacheEntryFactory
extends Object
implements net.sf.ehcache.constructs.blocking.CacheEntryFactory

Author:
Rena Tsantouli - Dimitris Katris (NKUA)

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
protected static AtomicInteger thumbId
           
protected static String thumbnailsRootPath
           
 
Constructor Summary
ThumbnailCacheEntryFactory()
           
 
Method Summary
 Object createEntry(Object key)
           
 byte[] getThumbnail(String srcObjectID, int width, int height, String[] thumbOptions, String scope)
           
 String searchForExistingThumbnail(String srcObjectURI, int width, int height, String[] thumbOptions, String scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger.


thumbId

protected static AtomicInteger thumbId

thumbnailsRootPath

protected static final String thumbnailsRootPath
See Also:
Constant Field Values
Constructor Detail

ThumbnailCacheEntryFactory

public ThumbnailCacheEntryFactory()
Method Detail

createEntry

public Object createEntry(Object key)
                   throws Exception
Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
Throws:
Exception

getThumbnail

public byte[] getThumbnail(String srcObjectID,
                           int width,
                           int height,
                           String[] thumbOptions,
                           String scope)
                    throws Exception
Throws:
Exception

searchForExistingThumbnail

public String searchForExistingThumbnail(String srcObjectURI,
                                         int width,
                                         int height,
                                         String[] thumbOptions,
                                         String scope)
                                  throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.