not getting tags in my window

Questions about developing the edge server core as well as applications

Moderators: Matt, kyle

Post Reply
anjanishrivastava
Posts: 17
Joined: Fri Jan 18, 2013 2:34 am

not getting tags in my window

Post by anjanishrivastava » Mon Feb 25, 2013 8:46 am

Hi,Matt
I just want to read ReadCycle without Zone
as per code its ok its printing "esper1"
But after that its BreakPoint
why this is happening any Idea or U can suggest me some good Method

addStatement("create window examplewindow.std:unique(tag)(tag String)");
//addStatement("insert into examplewindow select * from ReadCycle where readerID=''");
addStatement("insert into examplewindow select * from ReadCycle");
/* addStatement("snapshot every 1 seconds");*/

System.out.println("**********esper1*******************************");


addStatement("Select * from examplewindow",
new StatementAwareUpdateListener()
{
@Override
public void update(EventBean[] arg0, EventBean[] arg1,
EPStatement arg2, EPServiceProvider arg3)
{
TagConnectionDb wdbCon = new TagConnectionDb();

System.out.println("*******esper2****************************************");
absentList = wdbCon.getTagListFrom("examplewindow");
//System.out.println(examplewindow+examplewindow);
if (arg0 != null)
{
for (EventBean b : arg0)
{
TagReadEvent tag = (TagReadEvent) b
.getUnderlying();
if (absentList.contains(tag.getTag().getID()
.toString()))
{
wdbCon.addRecords(tag.getTag().getID()
.toString(), tag.getReaderID(),
"present_event");


//ANJANI 19 FEB 2012

}
}
}
wdbCon = null;
}
});

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests