55import java .util .HashMap ;
66
77/**
8- * ASP3Engine that stores data in file system.
8+ * AASPEngine that stores data in file system.
99 * @author thsc
1010 */
1111public class AASPEngineFS extends AASPEngine {
12- public static final String MEMENTO_FILENAME = "asp3CurrentAttributes " ;
12+ public static final String MEMENTO_FILENAME = "aaspCurrentAttributes " ;
1313 private final String rootDirectory ;
1414 private AASPChunkStorageFS chunkStorageFS ;
1515
@@ -22,7 +22,7 @@ private AASPEngineFS(String rootDirectory,
2222 this .rootDirectory = rootDirectory ;
2323 }
2424
25- public static AASPStorage getASP3ChunkStorage (String owner , String rootDirectory )
25+ public static AASPStorage getAASPChunkStorage (String owner , String rootDirectory )
2626 throws IOException , AASPException {
2727
2828 // check if root directory already exists. If not srt it up
@@ -31,24 +31,24 @@ public static AASPStorage getASP3ChunkStorage(String owner, String rootDirectory
3131 root .mkdirs ();
3232 }
3333
34- return AASPEngineFS .getASP3Engine (owner , rootDirectory );
34+ return AASPEngineFS .getAASPEngine (owner , rootDirectory );
3535
3636 }
3737
38- public static AASPStorage getASP3ChunkStorage (String rootDirectory )
38+ public static AASPStorage getAASPChunkStorage (String rootDirectory )
3939 throws IOException , AASPException {
4040
41- return AASPEngineFS .getASP3ChunkStorage (AASPEngineFS .DEFAULT_OWNER , rootDirectory );
41+ return AASPEngineFS .getAASPChunkStorage (AASPEngineFS .DEFAULT_OWNER , rootDirectory );
4242
4343 }
4444
45- public static AASPEngine getASP3Engine (String owner , String rootDirectory )
45+ public static AASPEngine getAASPEngine (String owner , String rootDirectory )
4646 throws IOException , AASPException {
4747
4848 // root directory must exist when setting up an engine
4949 File root = new File (rootDirectory );
5050 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 " );
5252 }
5353
5454 AASPEngineFS engine = new AASPEngineFS (
@@ -79,10 +79,10 @@ public static AASPEngine getASP3Engine(String owner, String rootDirectory)
7979 return engine ;
8080 }
8181
82- public static AASPEngine getASP3Engine (String rootDirectory )
82+ public static AASPEngine getAASPEngine (String rootDirectory )
8383 throws IOException , AASPException {
8484
85- return AASPEngineFS .getASP3Engine (null , rootDirectory );
85+ return AASPEngineFS .getAASPEngine (null , rootDirectory );
8686
8787 }
8888
0 commit comments