org.edg.data.reptor.storage
Class FileCacher
java.lang.Object
org.edg.data.reptor.storage.FileCacher
- public class FileCacher
- extends java.lang.Object
- Version:
- $Id: FileCacher.java,v 1.17 2004/12/16 15:38:33 jamesc Exp $
- Author:
- Erwin Laure, Peter Kunszt, Gavin McCance
Method Summary |
static java.net.URI |
cache(Configuration config,
java.net.URI source,
java.lang.String protocol)
Static cache method: cache the file on the storage and return the TURL. |
static java.net.URI |
getTurlForURI(StorageResource sr,
java.net.URI source,
java.lang.String protocol,
long retry,
long timeout)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
public static java.net.URI cache(Configuration config,
java.net.URI source,
java.lang.String protocol)
throws org.edg.data.util.InvalidFileTypeException,
StorageResourceException,
InfoServiceException
- Static cache method: cache the file on the storage and return the TURL.
- Parameters:
source
- The SURL to cache.
- Returns:
- URI TURL The transfer URL.
- Throws:
org.edg.data.util.InvalidFileTypeException
StorageResourceException
InfoServiceException
getTurlForURI
public static java.net.URI getTurlForURI(StorageResource sr,
java.net.URI source,
java.lang.String protocol,
long retry,
long timeout)
throws StorageResourceException,
InfoServiceException
- Throws:
StorageResourceException
InfoServiceException