org.gcube.data.speciesplugin
Class SpeciesSource

java.lang.Object
  extended by org.gcube.data.tmf.impl.AbstractSource
      extended by org.gcube.data.speciesplugin.SpeciesSource
All Implemented Interfaces:
Serializable, org.gcube.data.tmf.api.Source

public class SpeciesSource
extends org.gcube.data.tmf.impl.AbstractSource

Author:
"Federico De Faveri defaveri@isti.cnr.it", "Valentina Marioli valentina.marioli@isti.cnr.it"
See Also:
Serialized Form

Field Summary
protected  ReentrantReadWriteLock lock
           
protected  List<org.gcube.data.tmf.api.Property> properties
           
protected  Lock readLock
           
protected  Lock writeLock
           
 
Fields inherited from interface org.gcube.data.tmf.api.Source
TREE_TYPE
 
Constructor Summary
SpeciesSource(String id, SpeciesStore store, List<org.gcube.data.tmf.api.Property> properties)
          Creates an instance with a given identifier.
 
Method Summary
 Long cardinality()
          
 List<org.gcube.data.tmf.api.Property> properties()
          
 SpeciesStore store()
          Returns the underlying tree store
 File switchStore(File newStoreLocation)
           
 String toString()
          
 List<QName> types()
          
 
Methods inherited from class org.gcube.data.tmf.impl.AbstractSource
creationTime, description, environment, equals, hashCode, id, isUser, lastUpdate, lifecycle, name, notifier, reader, setCardinality, setCreationTime, setDescription, setEnvironment, setLastUpdate, setLifecycle, setName, setNotifier, setReader, setUser, setWriter, writer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lock

protected ReentrantReadWriteLock lock

readLock

protected Lock readLock

writeLock

protected Lock writeLock

properties

protected final List<org.gcube.data.tmf.api.Property> properties
Constructor Detail

SpeciesSource

public SpeciesSource(String id,
                     SpeciesStore store,
                     List<org.gcube.data.tmf.api.Property> properties)
Creates an instance with a given identifier.

Parameters:
id - the identifier
Method Detail

properties

public List<org.gcube.data.tmf.api.Property> properties()


store

public SpeciesStore store()
Returns the underlying tree store

Returns:
the store

switchStore

public File switchStore(File newStoreLocation)
                 throws IOException
Throws:
IOException

cardinality

public Long cardinality()

Specified by:
cardinality in interface org.gcube.data.tmf.api.Source
Overrides:
cardinality in class org.gcube.data.tmf.impl.AbstractSource

toString

public String toString()

Overrides:
toString in class org.gcube.data.tmf.impl.AbstractSource

types

public List<QName> types()



Copyright © 2014. All Rights Reserved.