incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Sling > Higher level observation services
Date Fri, 03 May 2013 09:43:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=SLING&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SLING/Higher+level+observation+services?focusedCommentId=31820639#comment-31820639">Higher
level observation services</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://cwiki.apache.org/confluence/display/~bdelacretaz">Bertrand
Delacretaz</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>If by "this" you mean the tentative API, then agreed, I'll remove it.</p>

<p>The interesting thing is that a number of the patterns mentioned here might not need
observation at all, a form of slow polling would work for most of them and be more scalable.</p>

<p>As you say, the Sling JcrResourceListener makes it easy to listen to specific events,
but to support that it has to blindly relay a lot of JCR events to the OSGi event queue, which
might also hinder scalability. I'll run some tests with Oak to measure what the actual impact
is.</p>
    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/confluence/display/~fmeschbe"
                          class="url fn confluence-userlink" data-username="fmeschbe"
                   >Felix Meschberger</a>:</strong><br/>
        <p>My impression is that we don't need this <img class="emoticon" src="/confluence/images/icons/emoticons/wink.gif"
height="20" width="20" align="absmiddle" alt="" border="0"/></p>

<p>The idea of Sling's conversion of JCR observation events to OSGi EventAdmin events
is exactly this level of abstraction. By registering an OSGi EventHandler service an declaring
what kinds of events you are interested in you can exactly have this filtering.</p>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/SLING/Higher+level+observation+services?focusedCommentId=31820639#comment-31820639">View
Online</a>
              |
       <a id="reply-31820639" href="https://cwiki.apache.org/confluence/display/SLING/Higher+level+observation+services?replyToComment=31820639#comment-31820639">Reply
To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message