[Reconnoiter-devel] proposed EPL config changes.

Dan Di Spaltro dan.dispaltro at gmail.com
Mon Aug 3 14:35:59 EDT 2009


Hard to tell, but there are really only like two classes of things to
do with Esper, combine events to get more detailed analysis, and to
just select on events.  Again, I like the distinction between the
queries and statements, and its better to keep it simple like you did.

Also, could we upgrade to esper 3.1.0?  There are a few items I like
that 3.1.0 provides. Particularly the first and last bullet of the
Major Changes section
(http://esper.codehaus.org/esper/history/history.html).

On Mon, Aug 3, 2009 at 11:28 AM, Theo Schlossnagle<jesus at omniti.com> wrote:
>
> On Aug 3, 2009, at 2:27 PM, Dan Di Spaltro wrote:
>
>> Theo,
>>
>> I like the dependency model.  So queries/statements batch get executed
>> before queries, and queries don't have (or need) any access to the
>> dependency model, correct?
>
> That's was my thinking, do you see any flaws therein?
>
>> On Sun, Aug 2, 2009 at 12:45 PM, Theo Schlossnagle<jesus at omniti.com>
>> wrote:
>>>
>>> What do you think about something like this for the config syntax
>>> allowing the EPL for views and named windows to be moved out to
>>> configuration files.
>>>
>>> The assumption being that the code that drives this configuration will
>>> load all statements (with requires/provides enforcing order) and then
>>> loads all queries.
>>>
>>> Thoughts?
>>>
>>> Index: stratcon.conf.in
>>> ===================================================================
>>> --- stratcon.conf.in    (revision 792)
>>> +++ stratcon.conf.in    (working copy)
>>> @@ -34,8 +34,28 @@
>>>     <start directory="%iepdbdir%"
>>>            command="%iepbindir%/run-iep.sh" />
>>>     <queries>
>>> +      <statement id="6cc613a4-7f9c-11de-973f-db7e8ccb2e5c"
>>> provides="CheckDetails-ddl">
>>> +        <epl>create window
>>> CheckDetails.std:unique(uuid).win:keepall() as NoitCheck</epl>
>>> +      </statement>
>>> +      <statement id="76598f5e-7f9c-11de-9f5b-ebb4dcb2494e"
>>> provides="CheckDetails">
>>> +        <requires>CheckDetails-ddl</requires>
>>> +        <epl>insert into CheckDetails select * from NoitCheck</epl>
>>> +      </statement>
>>> +      <statement id="ba189f08-7f99-11de-9013-733772d37479"
>>> provides="UnavailableStream">
>>> +        <requires>CheckDetails</requires>
>>> +        <epl>insert into UnavailableStream
>>> +             select p.* as delta, cds.target as target, cds.module as
>>> module,
>>> +                    cds.name as name, p.s.uuid as uuid
>>> +             from pattern [ every
>>> +                            s=NoitStatus(availability='A') ->
>>> +                            ( n0 = NoitStatus(uuid=s.uuid,
>>> availability='U')
>>> +                              and not NoitStatus(uuid=s.uuid,
>>> availability='A'))
>>> +                          ].std:lastevent() as p
>>> +             inner join CheckDetails as cds on cds.uuid = p.s.uuid
>>> +        </epl>
>>> +      </statement>
>>>       <query id="ce6bf8d2-3dd7-11de-a45c-a7df160cba9e" topic="status">
>>> -        select * from NoitStatus
>>> +        <epl>select * from NoitStatus</epl>
>>>       </query>
>>>     </queries>
>>>   </iep>
>>>
>>>
>>> --
>>> Theo Schlossnagle
>>> http://omniti.com/is/theo-schlossnagle
>>> p: +1.443.325.1357 x201   f: +1.410.872.4911
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Reconnoiter-devel mailing list
>>> Reconnoiter-devel at lists.omniti.com
>>> http://lists.omniti.com/mailman/listinfo/reconnoiter-devel
>>>
>>
>>
>>
>> --
>> Dan Di Spaltro
>
> --
> Theo Schlossnagle
> http://omniti.com/is/theo-schlossnagle
> p: +1.443.325.1357 x201   f: +1.410.872.4911
>
>
>
>
>
>



-- 
Dan Di Spaltro



More information about the Reconnoiter-devel mailing list