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.
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
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"
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)