1 / 40

Reliable Service Scheduler in a Distributed Web Service Environment

Reliable Service Scheduler in a Distributed Web Service Environment. John Bouchard Brad Tiffany Ethan Towne Daniel Richard. Are We Done Yet?!?!?!. Recap of Project. Service scheduler in a web service environment. Application Server. Applications. Two Applications QB Rating Calculator

hannah-long
Télécharger la présentation

Reliable Service Scheduler in a Distributed Web Service Environment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Reliable Service Scheduler in a Distributed Web Service Environment John Bouchard Brad Tiffany Ethan Towne Daniel Richard

  2. Are We Done Yet?!?!?!

  3. Recap of Project • Service scheduler in a web service environment Application Server

  4. Applications • Two Applications • QB Rating Calculator • Base Conversion Tool • Two Versions • Windows Application • PDA Application

  5. Application Design • Create Windows Application • Redesigned UI for PDA • Client-Server Model PDA Applications use Client – Server Model

  6. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  7. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  8. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  9. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  10. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  11. Client Side Server Side XML Writer XML Reader Server Side Processing XML Writer XML Reader

  12. Demo Time! QB Rating Calculator Application VS. primecomputing.com QB rating calculator ------------------------------------------------------- Comparison of PDA Base Conversion Tool Vs. Windows Calculator Application

  13. Flagship Application • Application Choice: • Avatar Chat Environment-2D • Combines Game, Chat, Utility • Game: Interactive, Fun • Chat: Real-time communication • Utility: Navigate services • Parallels previous team’s Flagship

  14. Flagship Application

  15. Flagship Application

  16. Flagship Application

  17. Flagship Application

  18. Flagship Application textmap.push("##.#.#.#...#O#O#O..######.#.##"); textmap.push("##.###.#...O....#..#......#.##"); textmap.push("##.#.#.#...#.,*.O..#.######.##"); textmap.push("##.........O.*,.#..#......#.##"); textmap.push("##..###....#....O..######.#.##"); textmap.push("##.#...#...O#..O#.........#.##"); textmap.push("##.#...#....O..#...########.##");

  19. Flagship Application

  20. Flagship Application • Work remaining: • Port to PocketPC • Share info with C# host (on same system) • Add functionality

  21. Service Manager Overview and Important Design Decisions Ethan Towne

  22. Service Manager Design Service Manager Accepts Client Connections Alters Agent Queue in Scheduler Spawns Service Agent Spawns Service Agent Agent 3 To Client Agent 2 To Client

  23. Service Agents • Each service has own thread called an “agent” • Each agent only runs when their turn has come

  24. Design Decisions • Asynchronous vs. Synchronous data reception. • Using polymorphism to launch client applications • SQL queries used to pull data for server implementation • Data Transfer Protocol

  25. Synchronous • Listening to a socket blocks the thread until data arrives.

  26. Asynchronous • Listening to a socket creates a new thread and blocks that thread.

  27. Polymorphism • Clients implement a common interface (Base Class). • Server creates a pointer of type interface (Base Class). • Pointer can then dynamically be set to point to the needed client application.

  28. Database Backend tblUser Fields: Key: usrUD Name Pass Info etc. relServices FK: usrID FK: srvcID tblServices Fields: Key: srvcID Service Name Usage Info etc.

  29. SQL Statements • Used to query database for unique data sets. A simple query: "Select * from testTable WHERE Name='"+name+ "' AND Pass='"+pass+"'"

  30. Relational Statements • Used to select datasets from 2 or more tables. For example: “Select * FROM testTable, testTable2 WHERE testTable.userId = 5 AND testTable.userID = testTable2.userID;

  31. Data Transfer Protocol XML used to transfer data. ToXML() and FromXML() Wraps/Unwraps data transferred into packets containing important data for the server.

  32. Service Scheduler Daniel Richard

  33. Abstract • Service Scheduler Design • Handling Input • What needs to be completed • Final Product • Recap

  34. Scheduler Soft Real- Time Queue Priority Queue Dispatcher (service activator) .Net Runtime S1 S3 S2 S4

  35. Input Buffer Queue • All Input is passed into an Input Buffer Queue. • The packets are scheduled according to their priority or deadline. • The service agent will be given control of CPU when their packet is dispatched.

  36. What’s Next? • Implementation of the Service Scheduler • Complete Implementation of the Client-Server Model • Integration of Client and Server

  37. Finished Product • Server executable • Requires .Net Framework • Client executable • Runs on PDA or Emulator • Fully Documented Code

  38. Future Semesters • Expand on Database backend • Add PC version of the Client program • Add more Client programs and services • Expand on Flagship Application • Possibilities are endless

  39. Recap • Demo of PDA Applications • Flagship Application • Service Manager • Service Scheduler • Finished Product

  40. ?

More Related