Index Changes

Goal:

Given a dynamic set of devices. Each device sends a signal every 2 seconds to acknowledge to the server that it is still alive. A device is dead if the server didn't receive its signal for the latest 10 seconds.

This requires you to perform following steps:

(1)Define an event processor to detect dead devices.

(2)Deploy the event processor to JBI runtime.

(3)Test the event processor.

Read on below to find out how this can be done.

Define an event processor to detect dead devices:

Step1:Create an IEP project called "iep" using Intelligent Event Processing Module creation wizard as shown

Step2:Create an event processor called "demo" using Intelligent Event Processor creation wizard as shown

Step3:Drag and drop following operators to canvas and connect them as shown

Step4:Configure StreamInput0 as shown

Step5:Configure TimeBasedWindow0 as shown

Step6:Configure DeleteStream0 as shown

Step7:Configure PartitionedWindow0 as shown

Step8:Configure Table0 as shown

Step9:Configure StreamProjectionAndFilter0 as shown

Step10:Configure StreamOutput0 as shown

Deploy the event processor to JBI runtime:

Create a Composite Application Project called "jbi" and add project "iep" to it. Make sure sun-iep-engine, sun-file-binding, and sun-http-binding are installed. Deploy project "jbi"

Test the event processor:

Open project "java" (see below), and run it. It will sends events to the event processor "demo". You will find notifications in C:\temp\DeadDeviceNotification.txt.

Workshop for this excercise

Here is the complete video demo, and the complete sample project which you can try. (You would need to make sure IEPSE, HTTPBC and FILEBC are installed)
Go to IEP Wiki Home


JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-4) was last changed on 18-Nov-08 12:32 PM, -0800 by Jeff Stein