Problem
1:
SimpleMathWebServices
- For this project, you have two options for the final implementation
- Option 1
- Choose to implement operations from Group I or Group II
- Make sure that your service is hosted in your port range and notify the class
- Write a client that access operations from the other Groups, hosted by another class member
- Option 2
- You may choose to implement all the operations (from both groups)
- You should fire up one service for each operation, and host on different ports.
- Demonstrate that your client can access multiple services.
- Problem: Compute the properties of an Ellipse using distributed Web Services:
An ellipse centered at the point (h,k) and having its major axis parallel to the x-axis is specified by the equation
(x-h)^2/a^2 + (y-k)^2/b^2 = 1
where (a,b) are the major and minor axes of the ellipse. In parametric form:
x = h + a cos(t)
x = h + a cos(t)
where -pi <= t <= pi. Compute the following properties for the unit circle, and for [h,k,a,b]=[-1,-2,4.5,2.75]:
- eccentricity
- circumference
- area
- arclength
- radius at a given (x,y) location
Use the Tutorial verion of SimpleMath web service
- The tutorial version has been installed onto pipeline3.acel.sdsu.edu
- locate your service in your home directory
- you will be assigned a port number for hosting your service, and a range of ports for your own testing. Do not use other ports because you may interfere with another student
Extend the client to access muliple instances of this service
- Hint: see tutorial for mult ResourceProviders for hints.
- you need to access once service from each 'Group' (see below)
- How long does this take?
Extend the server to support the client:
- modify to operate with floating point numbers
- add services: Group I: sqrt, division, exponential (x^y)
- add services: Group II: sin(), cos(),tan(), etc.
- Reference:http://en.wikipedia.org/wiki/Ellipse
Problem 2:
Using the TeraGrid
- WS-GRAM:
- Write a simple shell script that
- retrieves the MOTD from the host on which the script is
running: /etc/motd
- creates basic header information (full hostname, ip
address, date, userID, etc.)
- writes this all to a file
- stores the file in 2 places: host from which you
submitted the job, and your home directory on another TG machine.
- submit this job to the WS-GRAM service as a fork process
- submit this job to the WS-GRAM PBS queing system,
run on multiple nodes (e.g. 4)
- submit to gram services on 2 other hosts
|