active objects based application over grid environment
DESCRIPTION
Active Objects Based Application over Grid Environment. Rares Barbantan, Dorian Gorgan Computer Science Department, Technical University of Cluj-Napoca. Contents. Objectives Active Objects Model Framework Architecture Client module Web service Observer module Model Execution Testing - PowerPoint PPT PresentationTRANSCRIPT
Active Objects Based Application over Grid Environment
Rares Barbantan, Dorian GorganComputer Science Department,Technical University of Cluj-Napoca
GridCAD2006, Timisoara, 28 September 2006 2
Contents Objectives Active Objects Model Framework Architecture
Client module Web service Observer module
Model Execution Testing Conclusions
GridCAD2006, Timisoara, 28 September 2006 3
Objectives
Propose a distributed model flexible and extendible enough to be able to simulate any type of system from the real world
Use web services in a grid
Provide a 3D visualization of the system
GridCAD2006, Timisoara, 28 September 2006 4
Active Objects Model The main abstraction of the model is the
active object or alive object (aliob)
An aliob has some attributes and a behavior
During the execution of its behavior, another aliob’s attributes or even behavior can be changed
Communication is done through message passing
GridCAD2006, Timisoara, 28 September 2006 5
Active Objects Model (contd.)
Rule
Action
Aliob
Behavior
Trajectory
Attribute
BehaviorProcessor
ServerProcessor
Presentation
PresentationProcessor
Model ServerProcessor
Etp
GridCAD2006, Timisoara, 28 September 2006 6
Framework Architecture
Communication messages
Communication messages
Communication messages
Communication messages
Presentation update
Client
Client
Client
Client
Web service
Observer
GridCAD2006, Timisoara, 28 September 2006 7
Client module
BehaviorProcessor implements the behavior
ServerProcessor is delegated to perform any operations on itself
ModelServerProcessor is delegated to perform operations on global entities and to send messages to remote objects
GridCAD2006, Timisoara, 28 September 2006 8
Client module (contd.)
GridCAD2006, Timisoara, 28 September 2006 9
Web Service Web Service Resource Framework
Provides communication facilities between clients
Behaves like a postal office
Resources are like mailboxes
GridCAD2006, Timisoara, 28 September 2006 10
Web Service (contd.)
WSRF functionalities are used, like:• Factory pattern • Resource Home• Notifications• Expiring lease of resources
GridCAD2006, Timisoara, 28 September 2006 11
Web Service (contd.)
Client
Factory ServiceEndpointReference createResource()
Instance Servicevoid sendMessage(String msg)void setHostName(String msg)
Resource Home
ResourceString messageString hostName
Requests resource creation
Requests that an operation be performed
on a specific resource
Uses the resource home to create resources
Uses the resource home to find resources manages
setHostName() operates onthe resource properties
contained in the resource
GridCAD2006, Timisoara, 28 September 2006 12
Web service (contd.)
Each client has a resource allocated to it ~ mail box
The service sends the incoming messages for some objects to the mail box with which they are registered
The client is notified and it retrieves its messages
GridCAD2006, Timisoara, 28 September 2006 13
Observer module
Visualization of processes on the grid Zooming interface Active objects management : start,
stop, pause Visualization of a model or object’s 3D
presentation
GridCAD2006, Timisoara, 28 September 2006 14
Observer module (contd.)
GridCAD2006, Timisoara, 28 September 2006 15
Model Execution
BehaviorProcessor
CloudWeb Service
ServerProcessor
ModelServerProcessor
BehaviorProcessor
ServerProcessor
ModelServerProcessor
Environment
Observer
GridCAD2006, Timisoara, 28 September 2006 16
Testing was done using JUnit The web service handles a large
number of requests ~ /s The number of supported objects on
the network is virtually unlimited ~ /client
Testing results
40
2000
GridCAD2006, Timisoara, 28 September 2006 17
Conclusions & Future development
Implementation of interactors Imposing the unique name restriction
only inside the model Automate client distribution using grid
services Extending the 3D presentation
GridCAD2006, Timisoara, 28 September 2006 18
Thank you!
Any questions
?