-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
54 lines (37 loc) · 1.38 KB
/
README.txt
File metadata and controls
54 lines (37 loc) · 1.38 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Distributed Resource Manager
This is a Distributed Resource Manager that supports concurrent transactions with ACID properties.
Instructions:
- copy your submissions directory to ./submissions
cd project/test.part2
cp -r ../../submissions/* ../transaction
rm -r ../transaction/Client.java
cp -f Client.java ../transaction/
cd ../lockmgr
make
cd ../transaction
make clean
make server
make client
rmiregistry -J-classpath -J.. 3676 &
cd ../test.part2
setenv CLASSPATH .:gnujaxp.jar
javac RunTests.java
# make sure the following "rmiPort" number is the same as the
# "RMIREGPORT" in ../transaction/Makefile
java -DrmiPort=2219 RunTests MASTER.xml
- the results will be put in ./results/grades.txt
- If you want, you can modify the file project/test.part2/MASTER.xml
to change the scripts you want to test.
- You are STRONGLY suggested to run the scripts ONE BY ONE.
- Structure:
o RunTest.java parses the MASTER.xml. For each line, it activates
"Client.java" by passing the script name under the "scripts" directory.
o Client.java starts the necessary RMI modules, such as:
TransactionManager RMIName,
ResourceManager.RMINameFlights,
ResourceManager.RMINameRooms,
ResourceManager.RMINameCars,
ResourceManager.RMINameCustomers,
WorkflowController.RMIName
Then it reads and parses the script file, and interpret each line
to take the corresponding action.