-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
179 lines (165 loc) · 7.29 KB
/
index.html
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<!--
██╗ █████╗ ██████╗ ██████╗ ██╗ ██╗███████╗
██║ ██╔══██╗██╔══██╗██╔══██╗╚██╗ ██╔╝██╔════╝
██║ ███████║██████╔╝██████╔╝ ╚████╔╝ ███████╗
██║ ██╔══██║██╔══██╗██╔══██╗ ╚██╔╝ ╚════██║
███████╗██║ ██║██║ ██║██║ ██║ ██║ ███████║
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝
█████╗ ██████╗ ██╗███████╗███████╗
██╔══██╗██╔══██╗██║██╔════╝██╔════╝
███████║██████╔╝██║█████╗ ███████╗
██╔══██║██╔══██╗██║██╔══╝ ╚════██║
██║ ██║██║ ██║██║███████╗███████║
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
By Larry Xu and Michael Whittaker
https://github.com/mwhittaker/aries
-->
<html>
<head>
<title>ARIES</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.4.2/Sortable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vex-js/3.0.0/js/vex.combined.min.js"></script>
<script>vex.defaultOptions.className = 'vex-theme-default'</script>
<script src="https://rawgit.com/jneen/parsimmon/master/src/parsimmon.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="aries.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vex-js/3.0.0/css/vex.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vex-js/3.0.0/css/vex-theme-default.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" />
<link rel="stylesheet" href="styles.css">
<meta name="description" content="An interactive ARIES recovery algorithm simulator." />
<meta name="keywords" content="ARIES,database,recovery,algorithm,animation,simulation,simulator,explained,interactive" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-90310997-4', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="wrapper" class="clearfix">
<div class="width-30">
<div class="title-panel">
<h3>ARIES Simulator <a id="about" href="#">About <i class="fa fa-info-circle"></i></a></h3>
<div id="about-content" class="hidden">
<h2>ARIES Simulator</h2>
<h5>Developed at UC Berkeley by Larry Xu and Michael Whittaker</h5>
<a class="github-button" href="https://github.com/mwhittaker/aries" data-icon="octicon-star" data-style="mega" data-count-href="/mwhittaker/aries/stargazers" data-count-api="/repos/mwhittaker/aries#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star mwhittaker/aries on GitHub">Star</a>
<p>This simulator is designed to serve as a visual introduction to the ARIES recovery algorithm commonly used in many database systems.</p>
<p>If you're interested in learning more about how it works, the code is <a href="https://github.com/mwhittaker/aries">freely available on GitHub</a>. Consider sharing this website or starring the repo if you found this work useful.</p>
</div>
</div>
<div class="panel">
<div class="clearfix">
<h3 class="left">Operations</h3>
<div id="modes">
<button id="run" title="Run"><i class="fa fa-play"></i></button>
<button id="edit" title="Edit"><i class="fa fa-pencil"></i></button>
</div>
</div>
<ul id="commands">
</ul>
<div id="sub-controls">
<div id="sub-controls-run">
<span>Controls:</span>
<button id="left-arrow"><i class="fa fa-chevron-left"></i></button>
<button id="right-arrow"><i class="fa fa-chevron-right"></i></button>
<span>(or left and right arrow keys)</span>
</div>
<div id="sub-controls-edit" class="hidden">
<button id="new-command"><i class="fa fa-plus"></i> Append new command</button>
</div>
</div>
</div>
<div class="panel">
<h3>Explanation</h3>
<p>Current phase: <strong><span id="phase"></span></strong></p>
<ul id="explanation">
</ul>
</div>
</div>
<div class="width-30">
<div class="panel">
<h3>Log</h3>
<p>LSN of last log record flushed to disk: <span id="lsn-flushed"></span></p>
<table id="log">
<thead>
<tr>
<th>LSN</th>
<th>Trans ID</th>
<th>Type</th>
<th>Page ID</th>
<th>prevLSN</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="width-30">
<div class="panel">
<h3>Dirty Page Table</h3>
<table id="dirty-page-table">
<thead>
<tr>
<th>Page ID</th>
<th>recLSN</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="panel">
<h3>Transaction Table</h3>
<table id="transaction-table">
<thead>
<tr>
<th>Trans ID</th>
<th>Status</th>
<th>lastLSN</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="panel">
<h3>Buffer Pool</h3>
<table id="buffer-pool">
<thead>
<tr>
<th>Page ID</th>
<th>pageLSN</th>
<th>Value</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="panel">
<h3>Disk</h3>
<table id="disk">
<thead>
<tr>
<th>Page ID</th>
<th>pageLSN</th>
<th>Value</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>