• No results found

Service Discovery with the Google Android Mobile Platform

N/A
N/A
Protected

Academic year: 2021

Share "Service Discovery with the Google Android Mobile Platform"

Copied!
14
0
0

Loading.... (view fulltext now)

Full text

(1)

tesi di laurea

relatore

Ch.mo prof. Stefano Russo

correlatore

Ing. Marcello Cinque

candidato

Marco Faiella Matr. 885/139

Service Discovery with the Google Android Mobile Platform

(2)

Background

The technological progresses in the last years have made the users able to dispose of several types of mobile devices.

The traditional distributed systems evolved in nomadic computing systems

Services Oriented Architectures

• The applications are developed as a collection of independent services, combined in order to obtain more complex functionalities.

• The services are not necessarily known a priori.

It is necessary a mechanism which would allow the user to know what services are provided in his physical location.

(3)

Objectives

Objective of this work is the development of a Discovery application running on the Google Android mobile platform and based on a services framework developed by the Università degli Studi di Napoli Federico II in partnership with the Wifi People company.

Why Android?

• Android is Open Source

• There are still few Discovery solutions available.

• Android has been our object of study at the University of Strathclyde during our permanence in Glasgow.

(4)

Service Discovery

Definition: a collection of protocols and mechanisms which help the device or the software to know

which services are available.

Functional Requirements

• Mobility Support • Dynamicity Support

• Completeness of the search mechanism

• Bounds definition

Non-functional Requirements

Scalability, Lightness, Heterogeneity, Reliability, Safety

(5)

A Services Framework

Designed in the research project between CINI (Consorzio Interuniversitario Nazionale per

l’Informatica) and the WiFi People company, called WiFi People – CRONOS

Fr am ew or k A ppl ic a ti on S e rv ices S y s te m C ompone nts

Operating System (Win Mobile, Symbian, Android)

M a na ge me nt S e rv ices

Why this framework?

• Ad-hoc system, independent from any fixed infrastructure.

• Automatic configuration and distribution • Transparence

The framework acts as a middleware, so a client application (implemented in any language) may easily access to the provided services through the Proxy pattern.

(6)

The Google Android mobile platform

A software stack for mobile devices including an operating system, middleware and key applications

Developed by Google Inc. and the Open Handset Alliance

Includes

• Applications • Application Framework • Java-based runtime • Libraries • Linux Kernel

(7)

Design of a Discovery Application

Technical Requirements

• Send request for the available services • Show the available services as a list

• Select a service from the list and download it if not available on the device.

An Android-based Service Discovery application for the Core Framework. This application should make the user always able to keep up to date the services installed on his device and install new services when he needs.

(8)

Server

Side (1/2) – The Repository

The Repository is structured as directory trees.

• A root directory for each OS supported by the framework’s services

• A directory for each service

• A directory for each version of the services

An XML file, called latest.xml, keeps track of the latest version of the services for each OS.

(9)

Server Side (2/2) – The Discovery Service

Main Components:

• A service interface

• A proxy which handles the remote requests • The service itself

The Skeleton receives the requests from the client application through a socket connection.

The request is composed of an instruction code and one or more parameters.

Depending on the received code, the Skeleton invokes a method on the DiscoveryService.

(10)

Client Side – The Client Application

Main Components:

• A service interface

• A proxy which handles the remote requests

• The application itself

When the Stub receives the response to its request, it notifies it to the main application through the Notify() method.

The main application invokes the methods on the Stub.

The Stub creates a request message, with an instruction code and one or more parameters, and sends it to the Skeleton.

(11)

Interaction Overview (2/2)

(12)
(13)

Conclusions and Future Works

In the rapid and continuous spreading of the mobile technologies, the Services Oriented

Architectures represent a natural evolution for the applications.

The mobile device is, for the user, a key to interact with the environment. In this scenario the Service Discovery is quite an important tool.

In this work it has been developed a Discovery application provided with the basic functionalities for the Service Discovery.

Possible future upgrades:

• Implementation of a scanning function for the search of more discovery servers • Implementation of other search mechanism (i.e.: by class or by specific name)

(14)

References

Related documents

Overall, we found that it is important for individuals to select coping strategies that match their level of religiosity, and within this general type of strategy (secular

The primary objective of this study is to achieve continued operation of any multi-terminal HVDC network using relatively slow dc circuit breakers (with minimum

Using this event-study framework, we find new multinational plants are characterized by significantly lower employment growth and higher intermediate input imports.. We first

23 Concern: Lower High School Graduation Rates 25 Concern: Increasing Due Process Cases 26 Concern: Insufficient Resources 26 Benefit: Increased Professional Collaboration

Prime enrollees FY2018 51 Value is not significantly different than benchmark Prime enrollees FY2019 41 Significantly lower than benchmark (p < .05) Prime enrollees FY2020

The purpose of this study is to find a common ground for participation banking in Europe, by explaining a new way of banking practice which has its roots in the European

Note: This panel shows the chat rooms that you previously added to your My Chat Rooms list in the Sametime Advanced Manage Chat Rooms page.. Find a chat room to which I have access,

The Rosetta Stone Foundations (we call it “Rosetta Stone” for short) program comprises three parts: Language Training, Games & Activities, and Live Tutoring.. Language