File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\store\fs\Recorder.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.store.fs;
8
9 /**
10 * A recorder for the recording file system.
11 */
12 public interface Recorder {
13
14 /**
15 * Copy a file. The file name contains the source and the target file
16 * separated with a colon.
17 */
18 int COPY = 0;
19
20 /**
21 * Create a directory.
22 */
23 int CREATE_DIRECTORY = 1;
24
25 /**
26 * Create a new file.
27 */
28 int CREATE_NEW_FILE = 2;
29
30 /**
31 * Create a temporary file.
32 */
33 int CREATE_TEMP_FILE = 3;
34
35 /**
36 * Delete a file.
37 */
38 int DELETE = 4;
39
40 /**
41 * Open a file output stream.
42 */
43 int OPEN_OUTPUT_STREAM = 5;
44
45 /**
46 * Rename a file. The file name contains the source and the target file
47 * separated with a colon.
48 */
49 int RENAME = 6;
50
51 /**
52 * Truncate the file.
53 */
54 int TRUNCATE = 7;
55
56 /**
57 * Write to the file.
58 */
59 int WRITE = 8;
60
61 /**
62 * Record the method.
63 *
64 * @param op the operation
65 * @param fileName the file name or file name list
66 * @param data the data or null
67 * @param x the value or 0
68 */
69 void log(int op, String fileName, byte[] data, long x);
70
71 }
72