1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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