5
5
import java .util .HashMap ;
6
6
7
7
/**
8
- * ASP3Engine that stores data in file system.
8
+ * AASPEngine that stores data in file system.
9
9
* @author thsc
10
10
*/
11
11
public class AASPEngineFS extends AASPEngine {
12
- public static final String MEMENTO_FILENAME = "asp3CurrentAttributes " ;
12
+ public static final String MEMENTO_FILENAME = "aaspCurrentAttributes " ;
13
13
private final String rootDirectory ;
14
14
private AASPChunkStorageFS chunkStorageFS ;
15
15
@@ -22,7 +22,7 @@ private AASPEngineFS(String rootDirectory,
22
22
this .rootDirectory = rootDirectory ;
23
23
}
24
24
25
- public static AASPStorage getASP3ChunkStorage (String owner , String rootDirectory )
25
+ public static AASPStorage getAASPChunkStorage (String owner , String rootDirectory )
26
26
throws IOException , AASPException {
27
27
28
28
// check if root directory already exists. If not srt it up
@@ -31,24 +31,24 @@ public static AASPStorage getASP3ChunkStorage(String owner, String rootDirectory
31
31
root .mkdirs ();
32
32
}
33
33
34
- return AASPEngineFS .getASP3Engine (owner , rootDirectory );
34
+ return AASPEngineFS .getAASPEngine (owner , rootDirectory );
35
35
36
36
}
37
37
38
- public static AASPStorage getASP3ChunkStorage (String rootDirectory )
38
+ public static AASPStorage getAASPChunkStorage (String rootDirectory )
39
39
throws IOException , AASPException {
40
40
41
- return AASPEngineFS .getASP3ChunkStorage (AASPEngineFS .DEFAULT_OWNER , rootDirectory );
41
+ return AASPEngineFS .getAASPChunkStorage (AASPEngineFS .DEFAULT_OWNER , rootDirectory );
42
42
43
43
}
44
44
45
- public static AASPEngine getASP3Engine (String owner , String rootDirectory )
45
+ public static AASPEngine getAASPEngine (String owner , String rootDirectory )
46
46
throws IOException , AASPException {
47
47
48
48
// root directory must exist when setting up an engine
49
49
File root = new File (rootDirectory );
50
50
if (!root .exists () || !root .isDirectory ()) {
51
- throw new AASPException ("chunk root directory must exist when creating an ASP3Engine " );
51
+ throw new AASPException ("chunk root directory must exist when creating an AASPEngine " );
52
52
}
53
53
54
54
AASPEngineFS engine = new AASPEngineFS (
@@ -79,10 +79,10 @@ public static AASPEngine getASP3Engine(String owner, String rootDirectory)
79
79
return engine ;
80
80
}
81
81
82
- public static AASPEngine getASP3Engine (String rootDirectory )
82
+ public static AASPEngine getAASPEngine (String rootDirectory )
83
83
throws IOException , AASPException {
84
84
85
- return AASPEngineFS .getASP3Engine (null , rootDirectory );
85
+ return AASPEngineFS .getAASPEngine (null , rootDirectory );
86
86
87
87
}
88
88
0 commit comments