Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.aewrapper.cache
Class LocalStorageManager

    java.lang.Object
      es.upm.gib.aewrapper.cache.LocalStorageManager

    public class LocalStorageManager

extends java.lang.Object

This manager is in charge of both downloading experiments and placing them in the local cache. It synchronizes the complete process, so no repeated actions take place.

Access to the local cache and downloading of experiments is all done though this class.

Constructor Summary
`LocalStorageManager()`

Method Summary
`static void` | `cacheExperiment(java.lang.String expID, jacuzzi.util.notification.ProgressNotification<java.lang.Integer> progressNotification)`
`static owlbasicmodel.OWLBasicModel` | `getExperimentOWLModel(java.lang.String expID)` Retrieves the paths of the owl file of the requested experiment files.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LocalStorageManager

    public LocalStorageManager()

Method Detail

### getExperimentOWLModel

    public static owlbasicmodel.OWLBasicModel getExperimentOWLModel(java.lang.String expID)
                                                             throws MageParsingException,
                                                                    java.io.IOException,
                                                                    ExperimentAccessException,
                                                                    OWLModelNotLoadedException,
                                                                    org.jdom.JDOMException,
                                                                    LocalConfigException

  Retrieves the paths of the owl file of the requested experiment files. If the experiment is not cached, or it is not up to date, it is automatically and transparently downloaded and updated

  Parameters:
    `expID` - identifier of the requested experiment
  Returns:
    the path of the OWL file
  Throws:
    `java.io.IOException` - problems downloading the experiment or accessing the cache
    `MageParsingException` - errors reading the mage-ml document
    `ExperimentAccessException` - the experiment could not be accessed
    `LocalConfigException` - errors in the definition of the xml config document
    `OWLModelNotLoadedException` - errors loading the empty rdf model
    `org.jdom.JDOMException` - errors reading the xml config document

### cacheExperiment

    public static void cacheExperiment(java.lang.String expID,
                                       jacuzzi.util.notification.ProgressNotification<java.lang.Integer> progressNotification)
                                throws MageParsingException,
                                       java.io.IOException,
                                       ExperimentAccessException,
                                       OWLModelNotLoadedException,
                                       org.jdom.JDOMException,
                                       LocalConfigException

  Throws:
    `MageParsingException`
    `java.io.IOException`
    `ExperimentAccessException`
    `OWLModelNotLoadedException`
    `org.jdom.JDOMException`
    `LocalConfigException`

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD