41
© Hitachi Communication Technologies America, Inc. 2014. All rights reserved. Powering Dynamic M2M Event Processing with OSGi Dynamic Complex Event Processing and OSGi Hitachi Communication Technologies America, Inc. 6/12/2014 Walt Bowers Chief Architect OSGi Solutions

Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Powering Dynamic M2M Event Processing with OSGi Dynamic Complex Event Processing and OSGi

Hitachi Communication Technologies America, Inc.

6/12/2014

Walt Bowers

Chief Architect OSGi Solutions

Page 2: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

Contents

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

1. The Vs of Big Data

2. Complex Event Processing

3. Dynamic Complex Event Processing

Dynamic Complex Event Processing and OSGi. Powering Dynamic M2M Event Processing with OSGi

1

4. Demo

Page 3: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

1. The Vs of Big Data

Dynamic Complex Event Processing and OSGi.

Powering Dynamic M2M Event Processing with OSGi

2

Page 4: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

3 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

The Vs of Big Data

Page 5: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

4 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

The missing “V” of Big Data

Extracting VALUE from VIABLE Data

WHERE It Matters and WHEN It Matters

The missing “V” of Big Data

Page 6: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

5 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Rise of The Intelligent Device

Page 7: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

6 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Key Elements of Connected Intelligence

Intelligent

Devices

Always-on devices connected to variety

of sensors and running multiple

software applications

1

Real-Time Analytics

High-frequency

data analysis for instant decision

making and automation of

information flows

2

Big Data

Integration of data

from connected devices with enterprise

applications and historical data

3

Page 8: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

7 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Predictive Analytics

• Local analytics and business rules are controlled by global analytics

– In-flight data analytics on the device

– Near real time response on the device

• Global Analytics for the Big Patterns

– Big Data post processing

– Discover Hidden Patterns/dependencies

• Dynamically Adjust the Rules

– Update new rules to the local device

– Enhances the devices local analytics

• Rinse and Repeat

Page 9: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

8 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Transportation Example

Passenger

Counter

M2M Gateway)

1 Location tracking (LBS)

Camera (Normal operation,

local storage; emergencies such

as Amber alert, streaming to

emergency authorities)

Digital signage (Information

and advertising - Location

aware)

Vehicle diagnostics

(Sensors throughout

vehicle)

Route monitoring (Time of

day optimization)

Fraud detection

(Passenger counter,

camera, fare collection)

3 2

4

5 6

7

Page 10: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

2. Complex Event Processing

Dynamic Complex Event Processing and OSGi.

9

Powering Dynamic M2M Event Processing with OSGi

Page 11: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

10 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Intelligence Is Real-Time, Event-Based Analytics

Communication Events

Machine Events

Security Events

Environmental Events

Business Logic

Events

Complex Events Processing

enables real-time business insights from edge devices

Page 12: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

11 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Complex Event Processing (CEP)

• Event-driven Architecture • A generic data management infrastructure for

processing in-flight data before data is potentially stored to deliver results in near real-time

• Programming language for defining rules

• It allows users to Aggregate/Correlate/Enrich/Detect Patterns in high speed streaming data

Page 13: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

12 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Complex Event Processing (CEP)

Data/Msg. Feeds

Listener/SINK: User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

CEP Application Container

Page 14: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

13 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Event Capture

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

CEP Application Container

• Events generated at sources

• Adaptor captures event and sends it into the Event Processing Network

Page 15: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

14 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Event Processing

• Events processed in flight • Merging multiple event sources and types • Data enrichment by accessing external data sources

(e.g. databases)

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

CEP Application Container

Page 16: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

15 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Event Dispatch

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

CEP Application Container

• Processing produces events • Adaptor receives event and sends it into the

downstream clients

Page 17: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

3. Dynamic Complex Event Processing

Dynamic Complex Event Processing and OSGi.

16

Powering Dynamic M2M Event Processing with OSGi

Page 18: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

17 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Environment

• Devices do not operate in a static environment

• Inputs change

• Knowledge is gained from analytics

• Additional systems want to receive the output

Page 19: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

18 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Behavior

• Our Complex Event Processing engine needs

to be dynamic

• Ability to change behavior without stopping the

flow

• Allow a higher level system to change the

processing rules

Page 20: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

19 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Enter OSGi

Powered by

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

CEP Application Container

OSGi Framework

Java

• Dynamic Modular System for Java

• Mature Lightweight Application

Framework

– Ideal for embedded environments

• Supports Module Lifecycle

– Install/start/stop/uninstall/upgrade

– Remotely manageable

– Versioning

• Services Model

– Advertise and discover services

– Modules are dependent on service

not implementation

Page 21: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

20 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

OSGi Deployment Environment

OSGi Management System &

Repository

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi - CEP

OSGi Framework

Java

Remote Device

Page 22: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

21 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP

OSGi Management System &

Repository

Remote Device

Deployed System. Happily processing…

Page 23: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

22 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

The Data Inputs Change

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP

Page 24: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

23 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

Update the adaptor

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP OSGi Management System &

Repository

Remote Device

Page 25: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

24 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

Process the Events Differently

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP OSGi Management System

& Repository

Remote Device

Page 26: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

25 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

Forward to additional locations for processing

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP OSGi Management System &

Repository

Remote Device

Page 27: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

26 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamically Changing Behavior

Happily processing again…

OSGi Management System &

Repository

Remote Device

Data/Msg. Feeds Listener/SINK:

User Code (Plain Java)

Data Feed Adapters

Process Events (CEP)

OSGi CEP

Page 28: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

4. Demo

How OSGi and Java enables smart data on M2M aggregators and gateways. Powering Dynamic M2M Event Processing with OSGi

27

Page 29: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

28 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Example: JavaOne IoT In Motion

Page 30: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

29 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

The Components

LCD Display

Phidget Temp Sensor

Page 31: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

30 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

The Components

• OSGi based • Continuous Query Language (CQL) for defining rules • http://www.oracle.com/us/technologies/java/embedded/event-

processing/overview/index.html?ssSourceSiteId=opn

• Arm Based Linux platform

• http://www.raspberrypi.org/

• USB hardware devices

• Open and inexpensive

• http://www.phidgets.com/

• Hitachi’s OSGi Framework

Page 32: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

31 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Behavior In Action

Start reporting temperature changes below ambient temperature

Page 33: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

32 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Behavior In Action

Change the rules and redeploy remotely

Page 34: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

33 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Dynamic Behavior In Action

Now reporting temperature changes above ambient temperature

Page 35: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

© Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Hitachi Communication Technologies America, Inc.

Dynamic Complex Event Processing and OSGi.

Powering Dynamic M2M Event Processing with OSGi

6/12/2014

Walt Bowers

Chief Architect OSGi Solutions

[email protected]

END

34

Page 36: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,
Page 37: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,
Page 38: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

Appendix

Page 39: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

38 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Volume

3 006 477 107 200 GB added to the “digital universe” ~30% of it generated by machines

42 949 673 000 000 GB – 15 x increase 42 % will be generated by devices

Assuming 2GB/hr it will take 2.3 billion

years to download

According to IDC’s “Digital Universe in 2020“ study published in December 2012

Page 40: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

39 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Velocity

Page 41: Powering Dynamic M2M Event Processing with OSGi Dynamic M2M...Walt Bowers Chief Architect OSGi Solutions . Contents ... M2M Gateway) 1 Location tracking (LBS) Camera (Normal operation,

40 © Hitachi Communication Technologies America, Inc. 2014. All rights reserved.

Variety

•Clickstream Data

•Twitter Feeds

•Facebook Postings

•Web Content

Web and Social Media

•Smart Meters Readings

•RFID Readings

•Oil Rig Sensors

•GP Signals

Machine-to-Machine

•Healthcare Claims

•Telecommunication Call Details Record

•Utility Billing Records

Big Transaction Data

•Facial Recognition

•Genetics

Biometrics

•Call Center Voice Recording

•Email

•Electronic Medical Records

Human Generated