View Javadoc

1   /*
2    *
3    * <cvs:source>$Source: /devel/astrogrid/filestore/common/src/java/org/astrogrid/filestore/common/FileStoreConfig.java,v $</cvs:source>
4    * <cvs:author>$Author: jdt $</cvs:author>
5    * <cvs:date>$Date: 2004/11/25 00:19:19 $</cvs:date>
6    * <cvs:version>$Revision: 1.2 $</cvs:version>
7    * <cvs:log>
8    *   $Log: FileStoreConfig.java,v $
9    *   Revision 1.2  2004/11/25 00:19:19  jdt
10   *   Merge from dave-dev-200410061224-200411221626
11   *
12   *   Revision 1.1.2.1  2004/10/19 14:56:15  dave
13   *   Refactored config and resolver to enable multiple instances of mock implementation.
14   *   Required to implement handling of multiple FileStore(s) in FileManager.
15   *
16   *   Revision 1.3  2004/08/18 19:00:01  dave
17   *   Myspace manager modified to use remote filestore.
18   *   Tested before checkin - integration tests at 91%.
19   *
20   *   Revision 1.2.22.2  2004/08/09 10:16:28  dave
21   *   Added resource URL to the properties.
22   *
23   *   Revision 1.2.22.1  2004/08/06 22:25:06  dave
24   *   Refactored bits and broke a few tests ...
25   *
26   *   Revision 1.2  2004/07/14 13:50:29  dave
27   *   Merged development branch, dave-dev-200406301228, into HEAD
28   *
29   *   Revision 1.1.2.1  2004/07/12 14:39:03  dave
30   *   Added server repository classes
31   *
32   *   Revision 1.1.2.1  2004/07/08 07:31:30  dave
33   *   Added container impl and tests
34   *
35   * </cvs:log>
36   *
37   */
38  package org.astrogrid.filestore.common ;
39  
40  import java.net.URL ;
41  import java.io.File ;
42  import org.astrogrid.store.Ivorn ;
43  
44  import org.astrogrid.filestore.common.exception.FileStoreServiceException ;
45  
46  /***
47   * Public interface for a FileStore configuration.
48   *
49   */
50  public interface FileStoreConfig
51  	{
52  	/***
53  	 * The local service ivorn.
54  	 * @throws FileStoreServiceException if unable to read the property.
55  	 *
56  	 */
57  	public Ivorn getServiceIvorn()
58  		throws FileStoreServiceException ;
59  
60  	/***
61  	 * The local service URL.
62  	 * @throws FileStoreServiceException if unable to read the property.
63  	 *
64  	 */
65  	public URL getServiceUrl()
66  		throws FileStoreServiceException ;
67  
68  	/***
69  	 * Generate a resource ivorn.
70  	 * @param ident - the resource identifier.
71  	 * @throws FileStoreServiceException if unable to read the property.
72  	 *
73  	 */
74  	public Ivorn getResourceIvorn(String ident)
75  		throws FileStoreServiceException ;
76  
77  	/***
78  	 * Generate a resource URL.
79  	 * @param ident - the resource identifier.
80  	 * @throws FileStoreServiceException if unable to read the property.
81  	 *
82  	 */
83  	public URL getResourceUrl(String ident)
84  		throws FileStoreServiceException ;
85  
86  	/***
87  	 * The repository data directory.
88  	 * @throws FileStoreServiceException if unable to read the property.
89  	 *
90  	 */
91  	public File getDataDirectory()
92  		throws FileStoreServiceException ;
93  
94  	/***
95  	 * The repository info directory.
96  	 * @throws FileStoreServiceException if unable to read the property.
97  	 *
98  	 */
99  	public File getInfoDirectory()
100 		throws FileStoreServiceException ;
101 
102 	}
103 
104 
105