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

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

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


Field Summary
protected static AtomicInteger cmsId
          An atomic integer to get the CMS EPRs round-robin
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
 
Constructor Summary
NewContentInfoCacheEntryFactory()
           
 
Method Summary
 Object createEntry(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmsId

protected static AtomicInteger cmsId
An atomic integer to get the CMS EPRs round-robin


logger

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

Constructor Detail

NewContentInfoCacheEntryFactory

public NewContentInfoCacheEntryFactory()
Method Detail

createEntry

public Object createEntry(Object key)
                   throws Exception
Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
Parameters:
key - a QueryString representing pairs of keys and values: needed keys are "vre" and "oid"
Returns:
a DocumentDescription as it is returned from the CMS. The content is not transfered for storage and efficiency reasons
Throws:
Exception


Copyright © 2013. All Rights Reserved.