Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5827 amar.kumar 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Fri Aug 17 13:40:05 IST 2012 -->
6
<TITLE>
7
Filter (stat4j API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-08-17">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Filter (stat4j API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Filter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
</EM>
53
</TD>
54
</TR>
55
 
56
<TR>
57
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58
&nbsp;<A HREF="../../../net/sourceforge/stat4j/Calculator.html" title="interface in net.sourceforge.stat4j"><B>PREV CLASS</B></A>&nbsp;
59
&nbsp;<A HREF="../../../net/sourceforge/stat4j/Metric.html" title="class in net.sourceforge.stat4j"><B>NEXT CLASS</B></A></FONT></TD>
60
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61
  <A HREF="../../../index.html?net/sourceforge/stat4j/Filter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62
&nbsp;<A HREF="Filter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63
&nbsp;<SCRIPT type="text/javascript">
64
  <!--
65
  if(window==top) {
66
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67
  }
68
  //-->
69
</SCRIPT>
70
<NOSCRIPT>
71
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72
</NOSCRIPT>
73
 
74
 
75
</FONT></TD>
76
</TR>
77
<TR>
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82
</TR>
83
</TABLE>
84
<A NAME="skip-navbar_top"></A>
85
<!-- ========= END OF TOP NAVBAR ========= -->
86
 
87
<HR>
88
<!-- ======== START OF CLASS DATA ======== -->
89
<H2>
90
<FONT SIZE="-1">
91
net.sourceforge.stat4j</FONT>
92
<BR>
93
Class Filter</H2>
94
<PRE>
95
java.lang.Object
96
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>net.sourceforge.stat4j.Filter</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Filter</B><DT>extends java.lang.Object</DL>
101
</PRE>
102
 
103
<P>
104
Name:           Filter.java
105
 Date:          Aug 29, 2004
106
 Description:
107
 
108
 A filter encapculates a regular 
109
 expression that may be 'matched' or
110
 filtered from a log.
111
 
112
 A filter may optionally specify a scrape expression
113
 The scrape expression is used to scrap a value 
114
 from the log message itself - use standard regular
115
 expression groups. Group(1) will be the value string
116
 extracted.
117
<P>
118
 
119
<P>
120
<DL>
121
<DT><B>Author:</B></DT>
122
  <DD>Lara D'Abreo</DD>
123
</DL>
124
<HR>
125
 
126
<P>
127
<!-- =========== FIELD SUMMARY =========== -->
128
 
129
<A NAME="field_summary"><!-- --></A>
130
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
133
<B>Field Summary</B></FONT></TH>
134
</TR>
135
<TR BGCOLOR="white" CLASS="TableRowColor">
136
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
138
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#match">match</A></B></CODE>
139
 
140
<BR>
141
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
142
</TR>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
146
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#scape">scape</A></B></CODE>
147
 
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
150
</TR>
151
</TABLE>
152
&nbsp;
153
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
154
 
155
<A NAME="constructor_summary"><!-- --></A>
156
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
159
<B>Constructor Summary</B></FONT></TH>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#Filter()">Filter</A></B>()</CODE>
163
 
164
<BR>
165
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
166
</TR>
167
</TABLE>
168
&nbsp;
169
<!-- ========== METHOD SUMMARY =========== -->
170
 
171
<A NAME="method_summary"><!-- --></A>
172
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
173
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
174
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
175
<B>Method Summary</B></FONT></TH>
176
</TR>
177
<TR BGCOLOR="white" CLASS="TableRowColor">
178
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
180
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#getMatch()">getMatch</A></B>()</CODE>
181
 
182
<BR>
183
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
184
</TR>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
188
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#getScape()">getScape</A></B>()</CODE>
189
 
190
<BR>
191
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
192
</TR>
193
<TR BGCOLOR="white" CLASS="TableRowColor">
194
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195
<CODE>&nbsp;void</CODE></FONT></TD>
196
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#init(java.util.Properties)">init</A></B>(java.util.Properties&nbsp;properties)</CODE>
197
 
198
<BR>
199
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
200
</TR>
201
<TR BGCOLOR="white" CLASS="TableRowColor">
202
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203
<CODE>&nbsp;void</CODE></FONT></TD>
204
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#setMatch(java.lang.String)">setMatch</A></B>(java.lang.String&nbsp;string)</CODE>
205
 
206
<BR>
207
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
208
</TR>
209
<TR BGCOLOR="white" CLASS="TableRowColor">
210
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211
<CODE>&nbsp;void</CODE></FONT></TD>
212
<TD><CODE><B><A HREF="../../../net/sourceforge/stat4j/Filter.html#setScape(java.lang.String)">setScape</A></B>(java.lang.String&nbsp;string)</CODE>
213
 
214
<BR>
215
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
216
</TR>
217
</TABLE>
218
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
219
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
220
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
221
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
225
</TR>
226
</TABLE>
227
&nbsp;
228
<P>
229
 
230
<!-- ============ FIELD DETAIL =========== -->
231
 
232
<A NAME="field_detail"><!-- --></A>
233
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
236
<B>Field Detail</B></FONT></TH>
237
</TR>
238
</TABLE>
239
 
240
<A NAME="match"><!-- --></A><H3>
241
match</H3>
242
<PRE>
243
public java.lang.String <B>match</B></PRE>
244
<DL>
245
<DL>
246
</DL>
247
</DL>
248
<HR>
249
 
250
<A NAME="scape"><!-- --></A><H3>
251
scape</H3>
252
<PRE>
253
public java.lang.String <B>scape</B></PRE>
254
<DL>
255
<DL>
256
</DL>
257
</DL>
258
 
259
<!-- ========= CONSTRUCTOR DETAIL ======== -->
260
 
261
<A NAME="constructor_detail"><!-- --></A>
262
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
264
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
265
<B>Constructor Detail</B></FONT></TH>
266
</TR>
267
</TABLE>
268
 
269
<A NAME="Filter()"><!-- --></A><H3>
270
Filter</H3>
271
<PRE>
272
public <B>Filter</B>()</PRE>
273
<DL>
274
</DL>
275
 
276
<!-- ============ METHOD DETAIL ========== -->
277
 
278
<A NAME="method_detail"><!-- --></A>
279
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
280
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
281
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
282
<B>Method Detail</B></FONT></TH>
283
</TR>
284
</TABLE>
285
 
286
<A NAME="init(java.util.Properties)"><!-- --></A><H3>
287
init</H3>
288
<PRE>
289
public void <B>init</B>(java.util.Properties&nbsp;properties)</PRE>
290
<DL>
291
<DD><DL>
292
</DL>
293
</DD>
294
</DL>
295
<HR>
296
 
297
<A NAME="getMatch()"><!-- --></A><H3>
298
getMatch</H3>
299
<PRE>
300
public java.lang.String <B>getMatch</B>()</PRE>
301
<DL>
302
<DD><DL>
303
 
304
<DT><B>Returns:</B><DD></DL>
305
</DD>
306
</DL>
307
<HR>
308
 
309
<A NAME="getScape()"><!-- --></A><H3>
310
getScape</H3>
311
<PRE>
312
public java.lang.String <B>getScape</B>()</PRE>
313
<DL>
314
<DD><DL>
315
 
316
<DT><B>Returns:</B><DD></DL>
317
</DD>
318
</DL>
319
<HR>
320
 
321
<A NAME="setMatch(java.lang.String)"><!-- --></A><H3>
322
setMatch</H3>
323
<PRE>
324
public void <B>setMatch</B>(java.lang.String&nbsp;string)</PRE>
325
<DL>
326
<DD><DL>
327
<DT><B>Parameters:</B><DD><CODE>string</CODE> - </DL>
328
</DD>
329
</DL>
330
<HR>
331
 
332
<A NAME="setScape(java.lang.String)"><!-- --></A><H3>
333
setScape</H3>
334
<PRE>
335
public void <B>setScape</B>(java.lang.String&nbsp;string)</PRE>
336
<DL>
337
<DD><DL>
338
<DT><B>Parameters:</B><DD><CODE>string</CODE> - </DL>
339
</DD>
340
</DL>
341
<!-- ========= END OF CLASS DATA ========= -->
342
<HR>
343
 
344
 
345
<!-- ======= START OF BOTTOM NAVBAR ====== -->
346
<A NAME="navbar_bottom"><!-- --></A>
347
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
348
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
349
<TR>
350
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
351
<A NAME="navbar_bottom_firstrow"><!-- --></A>
352
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
353
  <TR ALIGN="center" VALIGN="top">
354
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
355
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
356
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
357
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Filter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
358
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
359
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
360
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
361
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
362
  </TR>
363
</TABLE>
364
</TD>
365
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
366
</EM>
367
</TD>
368
</TR>
369
 
370
<TR>
371
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
372
&nbsp;<A HREF="../../../net/sourceforge/stat4j/Calculator.html" title="interface in net.sourceforge.stat4j"><B>PREV CLASS</B></A>&nbsp;
373
&nbsp;<A HREF="../../../net/sourceforge/stat4j/Metric.html" title="class in net.sourceforge.stat4j"><B>NEXT CLASS</B></A></FONT></TD>
374
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
375
  <A HREF="../../../index.html?net/sourceforge/stat4j/Filter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
376
&nbsp;<A HREF="Filter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
377
&nbsp;<SCRIPT type="text/javascript">
378
  <!--
379
  if(window==top) {
380
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
381
  }
382
  //-->
383
</SCRIPT>
384
<NOSCRIPT>
385
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
386
</NOSCRIPT>
387
 
388
 
389
</FONT></TD>
390
</TR>
391
<TR>
392
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
393
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
394
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
395
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
396
</TR>
397
</TABLE>
398
<A NAME="skip-navbar_bottom"></A>
399
<!-- ======== END OF BOTTOM NAVBAR ======= -->
400
 
401
<HR>
402
 
403
</BODY>
404
</HTML>