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

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

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

Author:
Valia Tsagkalidou (NKUA)

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
protected static AtomicInteger mcId
          An atomic integer to get the CMS EPRs round-robin
 
Constructor Summary
MetadataCacheEntryFactory()
           
 
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

mcId

protected static AtomicInteger mcId
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

MetadataCacheEntryFactory

public MetadataCacheEntryFactory()
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", "metadataColID", "oid"
Returns:
the metadata object of the corresponding ID
Throws:
Exception


Copyright © 2013. All Rights Reserved.