1 package fr.in2p3.jsaga.sync.file;
2
3
4 import fr.in2p3.jsaga.sync.namespace.SyncNSEntry;
5 import org.ogf.saga.buffer.Buffer;
6 import org.ogf.saga.error.*;
7 import org.ogf.saga.file.IOVec;
8 import org.ogf.saga.file.SeekMode;
9
10 import java.util.List;
11
12
13
14
15
16 public interface SyncFile extends SyncNSEntry {
17
18
19
20
21
22
23
24
25 public long getSizeSync() throws NotImplementedException,
26 AuthenticationFailedException, AuthorizationFailedException,
27 PermissionDeniedException, IncorrectStateException,
28 TimeoutException, NoSuccessException;
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 public int readSync(Buffer buffer, int len) throws NotImplementedException,
44 AuthenticationFailedException, AuthorizationFailedException,
45 PermissionDeniedException, BadParameterException,
46 IncorrectStateException, TimeoutException, NoSuccessException,
47 SagaIOException;
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 public int readSync(Buffer buffer, int offset, int len)
64 throws NotImplementedException, AuthenticationFailedException,
65 AuthorizationFailedException, PermissionDeniedException,
66 BadParameterException, IncorrectStateException, TimeoutException,
67 NoSuccessException, SagaIOException;
68
69
70
71
72
73
74
75
76
77
78 public int readSync(Buffer buffer) throws NotImplementedException,
79 AuthenticationFailedException, AuthorizationFailedException,
80 PermissionDeniedException, BadParameterException,
81 IncorrectStateException, TimeoutException, NoSuccessException,
82 SagaIOException;
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97 public int writeSync(Buffer buffer, int offset, int len)
98 throws NotImplementedException, AuthenticationFailedException,
99 AuthorizationFailedException, PermissionDeniedException,
100 BadParameterException, IncorrectStateException, TimeoutException,
101 NoSuccessException, SagaIOException;
102
103
104
105
106
107
108
109
110
111
112
113 public int writeSync(Buffer buffer, int len) throws NotImplementedException,
114 AuthenticationFailedException, AuthorizationFailedException,
115 PermissionDeniedException, BadParameterException,
116 IncorrectStateException, TimeoutException, NoSuccessException,
117 SagaIOException;
118
119
120
121
122
123
124
125
126
127 public int writeSync(Buffer buffer) throws NotImplementedException,
128 AuthenticationFailedException, AuthorizationFailedException,
129 PermissionDeniedException, BadParameterException,
130 IncorrectStateException, TimeoutException, NoSuccessException,
131 SagaIOException;
132
133
134
135
136
137
138
139
140
141
142 public long seekSync(long offset, SeekMode whence)
143 throws NotImplementedException, AuthenticationFailedException,
144 AuthorizationFailedException, PermissionDeniedException,
145 IncorrectStateException, TimeoutException, NoSuccessException,
146 SagaIOException;
147
148
149
150
151
152
153
154
155
156
157 public void readVSync(IOVec[] iovecs) throws NotImplementedException,
158 AuthenticationFailedException, AuthorizationFailedException,
159 PermissionDeniedException, BadParameterException,
160 IncorrectStateException, TimeoutException, NoSuccessException,
161 SagaIOException;
162
163
164
165
166
167
168
169
170 public void writeVSync(IOVec[] iovecs) throws NotImplementedException,
171 AuthenticationFailedException, AuthorizationFailedException,
172 PermissionDeniedException, BadParameterException,
173 IncorrectStateException, TimeoutException, NoSuccessException,
174 SagaIOException;
175
176
177
178
179
180
181
182
183
184
185 public int sizePSync(String pattern) throws NotImplementedException,
186 AuthenticationFailedException, AuthorizationFailedException,
187 IncorrectStateException, PermissionDeniedException,
188 BadParameterException, TimeoutException, NoSuccessException;
189
190
191
192
193
194
195
196
197
198
199 public int readPSync(String pattern, Buffer buffer)
200 throws NotImplementedException, AuthenticationFailedException,
201 AuthorizationFailedException, PermissionDeniedException,
202 BadParameterException, IncorrectStateException, TimeoutException,
203 NoSuccessException, SagaIOException;
204
205
206
207
208
209
210
211
212
213
214 public int writePSync(String pattern, Buffer buffer)
215 throws NotImplementedException, AuthenticationFailedException,
216 AuthorizationFailedException, PermissionDeniedException,
217 BadParameterException, IncorrectStateException, TimeoutException,
218 NoSuccessException, SagaIOException;
219
220
221
222
223
224
225
226
227
228 public List<String> modesESync() throws NotImplementedException,
229 AuthenticationFailedException, AuthorizationFailedException,
230 PermissionDeniedException, IncorrectStateException,
231 TimeoutException, NoSuccessException;
232
233
234
235
236
237
238
239
240
241
242 public int sizeESync(String emode, String spec) throws NotImplementedException,
243 AuthenticationFailedException, AuthorizationFailedException,
244 IncorrectStateException, PermissionDeniedException,
245 BadParameterException, TimeoutException, NoSuccessException;
246
247
248
249
250
251
252
253
254
255
256
257
258 public int readESync(String emode, String spec, Buffer buffer)
259 throws NotImplementedException, AuthenticationFailedException,
260 AuthorizationFailedException, PermissionDeniedException,
261 BadParameterException, IncorrectStateException, TimeoutException,
262 NoSuccessException, SagaIOException;
263
264
265
266
267
268
269
270
271
272
273
274
275 public int writeESync(String emode, String spec, Buffer buffer)
276 throws NotImplementedException, AuthenticationFailedException,
277 AuthorizationFailedException, PermissionDeniedException,
278 BadParameterException, IncorrectStateException, TimeoutException,
279 NoSuccessException, SagaIOException;
280 }