vizi_tracker 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +116 -0
- data/Rakefile +44 -0
- data/config/logger-backup.yml +49 -0
- data/config/logger.yml +69 -0
- data/config/logger_apache.yml +65 -0
- data/config/logger_sample.yml +69 -0
- data/data/exlog.log +5458 -0
- data/data/sample-alter.log +11870 -0
- data/data/sample-surf.log +47 -0
- data/data/sample-wle.log +30474 -0
- data/data/testlog.log +270 -0
- data/data/vizitrax.log +17951 -0
- data/doc/Object.html +200 -0
- data/doc/ParserTest.html +268 -0
- data/doc/README_rdoc.html +128 -0
- data/doc/Rakefile.html +148 -0
- data/doc/Visit.html +487 -0
- data/doc/VisitList.html +385 -0
- data/doc/Vizi/LogFormat.html +377 -0
- data/doc/Vizi/LogParser.html +551 -0
- data/doc/Vizi/Visit.html +487 -0
- data/doc/Vizi/VisitList.html +386 -0
- data/doc/Vizi.html +168 -0
- data/doc/ViziLogFormat.html +382 -0
- data/doc/ViziLogParser.html +551 -0
- data/doc/created.rid +8 -0
- data/doc/formats/apache-custom-log.pdf +0 -0
- data/doc/formats/apache.rtf +238 -0
- data/doc/formats/format-descriptions.xls +0 -0
- data/doc/formats/w3c-extended.pdf +0 -0
- data/doc/formats/w3c-extended.rtf +135 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +112 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/vizi/parser_rb.html +63 -0
- data/doc/lib/vizi/vizi_tracker_rb.html +63 -0
- data/doc/lib/vizi_log_parser_rb.html +56 -0
- data/doc/lib/vizi_tracker_rb.html +56 -0
- data/doc/rdoc.css +759 -0
- data/doc/test/parser_test_rb.html +54 -0
- data/doc/test/test_helper_rb.html +56 -0
- data/doc/testit_rb.html +63 -0
- data/lib/vizi/vizi_tracker.rb +406 -0
- data/lib/vizi_tracker.rb +5 -0
- data/log/parse.log +79 -0
- data/log/system.log +66 -0
- data/test/parser_test.rb +48 -0
- data/test/test_helper.rb +3 -0
- data/testit.rb +105 -0
- data/vizi_tracker.gemspec +21 -0
- metadata +146 -0
data/doc/VisitList.html
ADDED
@@ -0,0 +1,385 @@
|
|
1
|
+
<?xml version="1.0" encoding="IBM437"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=IBM437" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: VisitList</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/vizi/parser_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/vizi/parser.rb">lib/vizi/parser.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link"><a href="Object.html">Object</a></p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-append">#append</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-delete">#delete</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-find_all">#find_all</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-find_by_ip">#find_by_ip</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-i-find_expired">#find_expired</a></li>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="project-metadata">
|
88
|
+
|
89
|
+
|
90
|
+
<div id="fileindex-section" class="section project-section">
|
91
|
+
<h3 class="section-header">Files</h3>
|
92
|
+
<ul>
|
93
|
+
|
94
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
95
|
+
|
96
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
97
|
+
|
98
|
+
</ul>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
<div id="classindex-section" class="section project-section">
|
103
|
+
<h3 class="section-header">Class/Module Index
|
104
|
+
<span class="search-toggle"><img src="./images/find.png"
|
105
|
+
height="16" width="16" alt="[+]"
|
106
|
+
title="show/hide quicksearch" /></span></h3>
|
107
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
108
|
+
<fieldset>
|
109
|
+
<legend>Quicksearch</legend>
|
110
|
+
<input type="text" name="quicksearch" value=""
|
111
|
+
class="quicksearch-field" />
|
112
|
+
</fieldset>
|
113
|
+
</form>
|
114
|
+
|
115
|
+
<ul class="link-list">
|
116
|
+
|
117
|
+
<li><a href="./Object.html">Object</a></li>
|
118
|
+
|
119
|
+
<li><a href="./ParserTest.html">ParserTest</a></li>
|
120
|
+
|
121
|
+
<li><a href="./Visit.html">Visit</a></li>
|
122
|
+
|
123
|
+
<li><a href="./VisitList.html">VisitList</a></li>
|
124
|
+
|
125
|
+
<li><a href="./ViziLogFormat.html">ViziLogFormat</a></li>
|
126
|
+
|
127
|
+
<li><a href="./ViziLogParser.html">ViziLogParser</a></li>
|
128
|
+
|
129
|
+
</ul>
|
130
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="documentation">
|
138
|
+
<h1 class="class">VisitList</h1>
|
139
|
+
|
140
|
+
<div id="description" class="description">
|
141
|
+
|
142
|
+
<h2>This class creates and manages a list to keep track of the visits that are in process (cached)</h2>
|
143
|
+
|
144
|
+
<p>Once a visit reaches the time interval, an output transaction is generated
|
145
|
+
and the visit is removed from the list Created by ...</p>
|
146
|
+
|
147
|
+
</div><!-- description -->
|
148
|
+
|
149
|
+
|
150
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<!-- Methods -->
|
160
|
+
|
161
|
+
<div id="public-class-method-details" class="method-section section">
|
162
|
+
<h3 class="section-header">Public Class Methods</h3>
|
163
|
+
|
164
|
+
|
165
|
+
<div id="new-method" class="method-detail ">
|
166
|
+
<a name="method-c-new"></a>
|
167
|
+
|
168
|
+
|
169
|
+
<div class="method-heading">
|
170
|
+
<span class="method-name">new</span><span
|
171
|
+
class="method-args">()</span>
|
172
|
+
<span class="method-click-advice">click to toggle source</span>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
<div class="method-description">
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<div class="method-source-code" id="new-source">
|
183
|
+
<pre>
|
184
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 325</span>
|
185
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
186
|
+
<span class="ruby-ivar">@visits</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
187
|
+
<span class="ruby-keyword">end</span></pre>
|
188
|
+
</div><!-- new-source -->
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
</div><!-- new-method -->
|
196
|
+
|
197
|
+
|
198
|
+
</div><!-- public-class-method-details -->
|
199
|
+
|
200
|
+
<div id="public-instance-method-details" class="method-section section">
|
201
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
202
|
+
|
203
|
+
|
204
|
+
<div id="append-method" class="method-detail ">
|
205
|
+
<a name="method-i-append"></a>
|
206
|
+
|
207
|
+
|
208
|
+
<div class="method-heading">
|
209
|
+
<span class="method-name">append</span><span
|
210
|
+
class="method-args">(visit)</span>
|
211
|
+
<span class="method-click-advice">click to toggle source</span>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<div class="method-source-code" id="append-source">
|
222
|
+
<pre>
|
223
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 329</span>
|
224
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">visit</span>)
|
225
|
+
<span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">visit</span>)
|
226
|
+
<span class="ruby-keyword">self</span>
|
227
|
+
<span class="ruby-keyword">end</span></pre>
|
228
|
+
</div><!-- append-source -->
|
229
|
+
|
230
|
+
</div>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</div><!-- append-method -->
|
236
|
+
|
237
|
+
|
238
|
+
<div id="delete-method" class="method-detail ">
|
239
|
+
<a name="method-i-delete"></a>
|
240
|
+
|
241
|
+
|
242
|
+
<div class="method-heading">
|
243
|
+
<span class="method-name">delete</span><span
|
244
|
+
class="method-args">(visit)</span>
|
245
|
+
<span class="method-click-advice">click to toggle source</span>
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
<div class="method-description">
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-source-code" id="delete-source">
|
256
|
+
<pre>
|
257
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 334</span>
|
258
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">visit</span>)
|
259
|
+
<span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">visit</span>)
|
260
|
+
<span class="ruby-keyword">end</span></pre>
|
261
|
+
</div><!-- delete-source -->
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
</div><!-- delete-method -->
|
269
|
+
|
270
|
+
|
271
|
+
<div id="find_all-method" class="method-detail ">
|
272
|
+
<a name="method-i-find_all"></a>
|
273
|
+
|
274
|
+
|
275
|
+
<div class="method-heading">
|
276
|
+
<span class="method-name">find_all</span><span
|
277
|
+
class="method-args">()</span>
|
278
|
+
<span class="method-click-advice">click to toggle source</span>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
|
282
|
+
<div class="method-description">
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
<div class="method-source-code" id="find_all-source">
|
289
|
+
<pre>
|
290
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 338</span>
|
291
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_all</span>
|
292
|
+
<span class="ruby-ivar">@visits</span>
|
293
|
+
<span class="ruby-keyword">end</span></pre>
|
294
|
+
</div><!-- find_all-source -->
|
295
|
+
|
296
|
+
</div>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</div><!-- find_all-method -->
|
302
|
+
|
303
|
+
|
304
|
+
<div id="find_by_ip-method" class="method-detail ">
|
305
|
+
<a name="method-i-find_by_ip"></a>
|
306
|
+
|
307
|
+
|
308
|
+
<div class="method-heading">
|
309
|
+
<span class="method-name">find_by_ip</span><span
|
310
|
+
class="method-args">(ip)</span>
|
311
|
+
<span class="method-click-advice">click to toggle source</span>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
|
315
|
+
<div class="method-description">
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<div class="method-source-code" id="find_by_ip-source">
|
322
|
+
<pre>
|
323
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 342</span>
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_by_ip</span>(<span class="ruby-identifier">ip</span>)
|
325
|
+
<span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">visit</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ip</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">visit</span>.<span class="ruby-identifier">ip</span> }
|
326
|
+
<span class="ruby-keyword">end</span></pre>
|
327
|
+
</div><!-- find_by_ip-source -->
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
</div><!-- find_by_ip-method -->
|
335
|
+
|
336
|
+
|
337
|
+
<div id="find_expired-method" class="method-detail ">
|
338
|
+
<a name="method-i-find_expired"></a>
|
339
|
+
|
340
|
+
|
341
|
+
<div class="method-heading">
|
342
|
+
<span class="method-name">find_expired</span><span
|
343
|
+
class="method-args">(test_dt)</span>
|
344
|
+
<span class="method-click-advice">click to toggle source</span>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
|
348
|
+
<div class="method-description">
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
<div class="method-source-code" id="find_expired-source">
|
355
|
+
<pre>
|
356
|
+
<span class="ruby-comment"># File lib/vizi/parser.rb, line 346</span>
|
357
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_expired</span>(<span class="ruby-identifier">test_dt</span>)
|
358
|
+
<span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">visit</span><span class="ruby-operator">|</span> <span class="ruby-identifier">visit</span>.<span class="ruby-identifier">expire_dt</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">test_dt</span>}
|
359
|
+
<span class="ruby-keyword">end</span></pre>
|
360
|
+
</div><!-- find_expired-source -->
|
361
|
+
|
362
|
+
</div>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</div><!-- find_expired-method -->
|
368
|
+
|
369
|
+
|
370
|
+
</div><!-- public-instance-method-details -->
|
371
|
+
|
372
|
+
</div><!-- 5Buntitled-5D -->
|
373
|
+
|
374
|
+
|
375
|
+
</div><!-- documentation -->
|
376
|
+
|
377
|
+
<div id="validator-badges">
|
378
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
379
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
380
|
+
Rdoc Generator</a> 2</small>.</p>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
</body>
|
384
|
+
</html>
|
385
|
+
|