Questions tagged [esper]

Esper is a lightweight, open-source library for CEP (Complex Event Processing) and ESP (Event Stream Processing) applications developed by EsperTech Inc.

It is available for Java as Esper, and for .NET as NEsper under the GPL V2 license.

536 questions
0
votes
1 answer

EsperIOSocketAdapter binding to specific network adapter

I'm new to Esper and am interested in using it to send event data via a network so consequently interested in the EsperIOSocketAdapter It appears that SocketAdapter can only bind to a specific port which is fine if there is only one network adapter…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
0
votes
1 answer

Multiple streams in CEP Engine (Esper)

I am new about esper engine and I am not sure about meaning of multiple streams. I want to create something like this: CepEnigine cep = new CepEngine(); Controller.getInstance().setRuntime(cep.getRuntime()); for(int i = 0; i < 5; i++) new…
Smitis
  • 318
  • 1
  • 4
  • 17
0
votes
1 answer

Esper: Reset std:firstevent()

Currently i am using following piece of code. It looks for the first event of ValueTrigger and saves it and ignore all the next ValueTriggered Events. Then it compares currentData.last value with first ValueTriggered event. select * from Tick as…
Ahmad.Masood
  • 1,289
  • 3
  • 21
  • 40
0
votes
1 answer

ESPER: Find Max and Min of 24 hours and check if price goes above the Max of previous 24 hours value

I am unable to solve an Esper problem. I have to calculate Max and Min of 24 hours and then i have to check if tick price goes above this value ( This has to be done on multiple securities .) Here is the code which i am using. But i am betting alot…
Ahmad.Masood
  • 1,289
  • 3
  • 21
  • 40
0
votes
1 answer

Esper : Group Tick data on Security , Find Max and Min of day. And then perform further Computation

I am unable to solve a certain problem in Esper. I have to check if the current Tick value goes up from yesterday Max Value. Here is the code with returns me max and min of every 24 hr. insert into DayEnd select max(last) as high, min(last) as…
Ahmad.Masood
  • 1,289
  • 3
  • 21
  • 40
0
votes
1 answer

Esper stops working after a while running

I'm using Esper 4.9 with Mule 3.4. I have some different patterns to work with stock quotes. They are all working good, at some point, without any reason (I don't really know if I can see a log only from Esper), Esper does not process more events…
0
votes
2 answers

Find if a String in a list of Strings is in another list of Strings in Esper

I'm working with Esper + Mule and I am trying to define a POJO and an Event, but after reading the documentation of Espero I haven't found what I really need. My event, represented by a POJO, has a property like this: List Words; What I…
0
votes
2 answers

Esper last inserted Event

Is there a way to get the last inserted event in esper core prior to rule completion? Configuration cepConfig = new Configuration(); cepConfig.getEngineDefaults().getMetricsReporting(). …
abhi
  • 4,762
  • 4
  • 29
  • 49
0
votes
1 answer

the esper events do not perform aggregation logic correctly

I have a tuple: public class mytuple { private int status; private int userid; private int location; private int count1; private int count2; // corresponding getter settrs included. } I create two esper statements…
user471450
0
votes
1 answer

Add or remove events into a StreamInsight window

Is there a way to retain all events and just add or delete events as desired in StreamInsight? In Esper there is a method called keepall() witch can be applied on a window. This method keeps all incoming events and you can have different queries for…
lmsasu
  • 7,459
  • 18
  • 79
  • 113
0
votes
2 answers

Hierarchical rule triggering with Esper

We have a stream of events each having the following properties: public class Event { private String id; private String src; private String dst; } Besides, we have a set of hierarchical or nested rules we want to model with EPL and…
Nader Ghanbari
  • 4,120
  • 1
  • 23
  • 26
0
votes
1 answer

Selecting last event in group

We have an application that connects to several other systems and pushes events into a stream. Each connector will also send a status message as its status changes. I would like to have an esper query that shows me the last status sent for each…
Mike Two
  • 44,935
  • 9
  • 80
  • 96
0
votes
1 answer

Esper publisher and subscriber at different hosts

Is there any sample code that can have one host publishing events and the other host receiving the event (listener or subscriber) through the Esper framework. I notice Esper provides different adaptors (socket, JMS and HTTP) but cannot find…
0
votes
1 answer

Esper: find earliest event within time after a trigger event arrives

My event stream generally contains an open event followed by a close event. Let's call them O and C, correspndingly. However, there are two particulars: O may be followed by one or more O before C arrives C may be missing completely (see below) It…
Vitamin C
  • 871
  • 6
  • 2
0
votes
1 answer

Error formatting Esper query

I'm using (or trying to use) Esper to retrieve a specific class of object of which one of the methods returns a specific value. Here's the statement I'm setting now. EsperEventConsumer consumer = new…
exxodus7
  • 562
  • 1
  • 9
  • 27