flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r960084 - in /websites/staging/flume/trunk/content: ./ .doctrees/FlumeUserGuide.doctree .doctrees/environment.pickle FlumeUserGuide.html _sources/FlumeUserGuide.txt
Date Wed, 29 Jul 2015 21:21:08 GMT
Author: buildbot
Date: Wed Jul 29 21:21:07 2015
New Revision: 960084

Log:
Staging update by buildbot for flume

Modified:
    websites/staging/flume/trunk/content/   (props changed)
    websites/staging/flume/trunk/content/.doctrees/FlumeUserGuide.doctree
    websites/staging/flume/trunk/content/.doctrees/environment.pickle
    websites/staging/flume/trunk/content/FlumeUserGuide.html
    websites/staging/flume/trunk/content/_sources/FlumeUserGuide.txt

Propchange: websites/staging/flume/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jul 29 21:21:07 2015
@@ -1 +1 @@
-1693347
+1693348

Modified: websites/staging/flume/trunk/content/.doctrees/FlumeUserGuide.doctree
==============================================================================
Binary files - no diff available.

Modified: websites/staging/flume/trunk/content/.doctrees/environment.pickle
==============================================================================
Binary files - no diff available.

Modified: websites/staging/flume/trunk/content/FlumeUserGuide.html
==============================================================================
--- websites/staging/flume/trunk/content/FlumeUserGuide.html (original)
+++ websites/staging/flume/trunk/content/FlumeUserGuide.html Wed Jul 29 21:21:07 2015
@@ -5800,44 +5800,38 @@ not to throw any exception from the impl
 Additional parameters can be passed to EventValitor implementation via -D options.</p>
 <p>Let&#8217;s see an example of simple size based Event Validator, which shall
reject event&#8217;s larger
 than maximum size specified.</p>
-<div class="system-message">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">/usr/home/cmsslave/slave15/flume-site-staging/build/trunk/content/sphinx/FlumeUserGuide.rst</tt>,
line 3793)</p>
-<p>Error in &#8220;code-block&#8221; directive:
-maximum 1 argument(s) allowed, 8 supplied.</p>
-<div class="highlight-none"><div class="highlight"><pre>.. code-block::
java
-  public static class MyEventValidator implements EventValidator {
-
-    private int value = 0;
-
-    private MyEventValidator(int val) {
-      value = val;
-    }
-
-    @Override
-    public boolean validateEvent(Event event) {
-      return event.getBody() &lt;= value;
-    }
-
-    public static class Builder implements EventValidator.Builder {
-
-      private int sizeValidator = 0;
-
-      @Override
-      public EventValidator build() {
-        return new DummyEventVerifier(sizeValidator);
-      }
-
-      @Override
-      public void configure(Context context) {
-        binaryValidator = context.getInteger(&quot;maxSize&quot;);
-      }
-    }
-  }
+<div class="highlight-java"><div class="highlight"><pre><span class="kd">public</span>
<span class="kd">static</span> <span class="kd">class</span> <span
class="nc">MyEventValidator</span> <span class="kd">implements</span>
<span class="n">EventValidator</span> <span class="o">{</span>
+
+  <span class="kd">private</span> <span class="kt">int</span> <span
class="n">value</span> <span class="o">=</span> <span class="mi">0</span><span
class="o">;</span>
+
+  <span class="kd">private</span> <span class="nf">MyEventValidator</span><span
class="o">(</span><span class="kt">int</span> <span class="n">val</span><span
class="o">)</span> <span class="o">{</span>
+    <span class="n">value</span> <span class="o">=</span> <span
class="n">val</span><span class="o">;</span>
+  <span class="o">}</span>
+
+  <span class="nd">@Override</span>
+  <span class="kd">public</span> <span class="kt">boolean</span>
<span class="nf">validateEvent</span><span class="o">(</span><span
class="n">Event</span> <span class="n">event</span><span class="o">)</span>
<span class="o">{</span>
+    <span class="k">return</span> <span class="n">event</span><span
class="o">.</span><span class="na">getBody</span><span class="o">()</span>
<span class="o">&lt;=</span> <span class="n">value</span><span
class="o">;</span>
+  <span class="o">}</span>
+
+  <span class="kd">public</span> <span class="kd">static</span> <span
class="kd">class</span> <span class="nc">Builder</span> <span class="kd">implements</span>
<span class="n">EventValidator</span><span class="o">.</span><span
class="na">Builder</span> <span class="o">{</span>
+
+    <span class="kd">private</span> <span class="kt">int</span> <span
class="n">sizeValidator</span> <span class="o">=</span> <span class="mi">0</span><span
class="o">;</span>
+
+    <span class="nd">@Override</span>
+    <span class="kd">public</span> <span class="n">EventValidator</span>
<span class="nf">build</span><span class="o">()</span> <span class="o">{</span>
+      <span class="k">return</span> <span class="k">new</span> <span
class="nf">DummyEventVerifier</span><span class="o">(</span><span
class="n">sizeValidator</span><span class="o">);</span>
+    <span class="o">}</span>
+
+    <span class="nd">@Override</span>
+    <span class="kd">public</span> <span class="kt">void</span> <span
class="nf">configure</span><span class="o">(</span><span class="n">Context</span>
<span class="n">context</span><span class="o">)</span> <span class="o">{</span>
+      <span class="n">binaryValidator</span> <span class="o">=</span>
<span class="n">context</span><span class="o">.</span><span class="na">getInteger</span><span
class="o">(</span><span class="s">&quot;maxSize&quot;</span><span
class="o">);</span>
+    <span class="o">}</span>
+  <span class="o">}</span>
+<span class="o">}</span>
 </pre></div>
 </div>
 </div>
 </div>
-</div>
 <div class="section" id="topology-design-considerations">
 <h2>Topology Design Considerations<a class="headerlink" href="#topology-design-considerations"
title="Permalink to this headline">¶</a></h2>
 <p>Flume is very flexible and allows a large range of possible deployment

Modified: websites/staging/flume/trunk/content/_sources/FlumeUserGuide.txt
==============================================================================
--- websites/staging/flume/trunk/content/_sources/FlumeUserGuide.txt (original)
+++ websites/staging/flume/trunk/content/_sources/FlumeUserGuide.txt Wed Jul 29 21:21:07 2015
@@ -3791,6 +3791,7 @@ Let's see an example of simple size base
 than maximum size specified.
 
 .. code-block:: java
+
   public static class MyEventValidator implements EventValidator {
 
     private int value = 0;



Mime
View raw message