Real-Time Systems Lab. History of OSGi

Download Report

Transcript Real-Time Systems Lab. History of OSGi

OSGi overview
January 23, 2002
Sung-ho Park
Real-Time Systems Lab.
Table of Contents
• OSGi overview
– History of OSGi
– Mission of OSGi
– OSGi and Related Standard
– OSGi Framework and Specification
– Key Benefits of OSGi
– Markets for OSGi
• OSGi End to End Architecture
• Service Gateway
– Service Framework
– Services
• Reference
Real-Time Systems Lab.
History of OSGi
• Founded in March 1999
– Goal:
To create open specification for the delivery of multiple services
over wide area networks to local networks and devices
• Incorporated as a Non-profit corporation in May 1999
• Current members
– More than sixty companies
…
BMW,
Ericsson, Nokia, NTT,
HP, IBM, Motorola, Oracle, Sun Microsystems, Texas Instruments, Wind
River Systems,
Samsung Electronics, Sharp, Sony, Toshiba, Panasonic, Philips,
ETRI
…
Real-Time Systems Lab.
Mission of OSGi
1/2
• Many wide-area network and home networking standards
• But no service delivery standard.
?
Real-Time Systems Lab.
Mission of OSGi
2/2
• Provide open-platform independent framework and API’s
for dynamic delivery of managed service with secure, scalable and
reliable metrics
Real-Time Systems Lab.
OSGi and Related Standards
Real-Time Systems Lab.
OSGi Framework and Specification
Real-Time Systems Lab.
Key Benefits of OSGi
• Platform Independent
• Application Independent
• Secure
• Multiple Services
• Multiple Local Network Technologies
• Multiple Device Access Technologies
• Co-existence with other Standards
Real-Time Systems Lab.
Markets for OSG
• Residential Gateway
• Communication Services
• Energy Services
• Home Automation Services
• Security Services
• Remote Home Healthcare Services
Real-Time Systems Lab.
OSGi End to End Architecture
1/2
• OSGi spec. creates an open standard for programmable
user-premises equipment
– Downloading of software, application lifecycle management,
gateway security, attached device access, resource management,
and functions necessary for remote administration of the gateway
• Major components
– Service gateway
– Service Provider
– Service aggregator
– Gateway operator
– Wide area network and carrier(ISP)
– Local networks and devices
Real-Time Systems Lab.
OSGi End to End Architecture
2/2
Real-Time Systems Lab.
Services Gateway
1/2
• Java environment:
Device access
HTTP
Log
• Service framework:
defines API for creating and running
services
• Services
– Basic services
• Device access manager: defines API for
accessing devices
• Log service: defines a required service
for logging information
Service Framework
Java Virtual Machine
Operation System
Real-Time Systems Lab.
Services Gateway
2/2
– Optional services
• HTTP service:
defines a service API for an HTTP-based web server
• Client access service:
defines a service API for publishing information
• Configuration data service:
defines a service for managing configuration information
• Persistent data service:
defines a service API for persistent data
Real-Time Systems Lab.
Service Framework
Device access
• Presented as a bundle
(System bundle)
HTTP
• Provide a concise and consistent
programming model
Log
• Manage installation, Uninstallation,
Update, Start, Stop of bundle,
and dependencies between
bundles and services
Service Framework
Java Virtual Machine
Operation System
Real-Time Systems Lab.
Bundle
• Comprise Java classes and other resources for service
• BundleActivator class: start, stop
Real-Time Systems Lab.
Services
• Generic services
Device access
Log
• Driver services
HTTP
• Device services
Service Framework
Java Virtual Machine
Operation System
Real-Time Systems Lab.
Generic Service
• Service interface: spec. of the service’s public methods
• Service object: Implementation of one or more service
interfaces
• Registered(in start method) and unregistered(in stop
method) at Framework Service Registry
• Using sequence
Get service reference
 get service object
 interface using service interface
Real-Time Systems Lab.
Device Service and Driver Service
1/6
• Present physical device access methods
• Device service
– Logical device
– Belong to a defined device category
• Device interface
• Information to support Device Service Registration, Attachment
• Driver service
– Connect between devices
(physical and logical, logical and logical)
Real-Time Systems Lab.
Device Service and Driver Service
2/6
Real-Time Systems Lab.
Device Service and Driver Service
3/6
Real-Time Systems Lab.
Device Service and Driver Service
4/6
Real-Time Systems Lab.
Device Service and Driver Service
5/6
Real-Time Systems Lab.
Device Service and Driver Service
6/6
Real-Time Systems Lab.
Automatic Detection and Attachment of Devices 1/2
• Device Manager
– Attach Device service with suitable Driver service automatically
– Using Driver Locator and Driver Selector
– Driver Locator
• Assistant in location bundles that provided a Driver service
– Driver Selector
• Assistant in selecting which Driver service is best suited to Device
service
Real-Time Systems Lab.
Automatic Detection and Attachment of Devices 2/2
• Base Driver
– Support automatic physical device detection
Real-Time Systems Lab.
Reference
• http://www.osgi.org
• OSGi's Specification Overview
• OSGi Service Gateway Specification Release 1.0
• The Service Gateway 1.0 Overview
• OSGi Service Platform Release 2
Real-Time Systems Lab.