180 likes | 305 Views
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
E N D
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 • Conclusions GridCAD2006, Timisoara, 28 September 2006
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
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
Active Objects Model (contd.) Aliob Presentation Server Processor Behavior Trajectory Presentation Processor Behavior Processor Rule Attribute Etp Action Model Server Processor GridCAD2006, Timisoara, 28 September 2006
Framework Architecture Client Client Communication messages Communication messages Observer Web service Presentation update Communication messages Communication messages Client Client GridCAD2006, Timisoara, 28 September 2006
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
Client module (contd.) GridCAD2006, Timisoara, 28 September 2006
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
Web Service (contd.) WSRF functionalities are used, like: • Factory pattern • Resource Home • Notifications • Expiring lease of resources GridCAD2006, Timisoara, 28 September 2006
Web Service (contd.) Uses the resource home to create resources Factory Service EndpointReference createResource() Resource Home Requests resource creation Uses the resource home to find resources manages Client Requests that an operation be performed on a specific resource Instance Service void sendMessage(String msg) void setHostName(String msg) Resource String message String hostName setHostName() operates on the resource properties contained in the resource GridCAD2006, Timisoara, 28 September 2006
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
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
Observer module (contd.) GridCAD2006, Timisoara, 28 September 2006
Model Execution Web Service Environment Cloud ModelServerProcessor ModelServerProcessor ServerProcessor ServerProcessor Observer BehaviorProcessor BehaviorProcessor GridCAD2006, Timisoara, 28 September 2006
Testing results • 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 40 2000 GridCAD2006, Timisoara, 28 September 2006
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
Thank you! Any questions ? GridCAD2006, Timisoara, 28 September 2006