28.06.2013 Views

Papers in PDF format

Papers in PDF format

Papers in PDF format

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The user opens the connection with the WebSM by enter<strong>in</strong>g a session. The home page of the WebSM presents<br />

a list of available sessions, together with l<strong>in</strong>ks that can be followed to enter each session.<br />

2.2 Applications, Processes and Agents<br />

An application is an executable program.The command beg<strong>in</strong>s the execution of the<br />

application us<strong>in</strong>g a new process ; it also stores <strong>in</strong> the Sessions Database (SDB) the <strong>in</strong><strong>format</strong>ion related to<br />

.<br />

The applications available via the SM can be on mach<strong>in</strong>es different from the one <strong>in</strong> which the SM operates.<br />

The <strong>in</strong>teraction between the process and the session manager is realized us<strong>in</strong>g agents that send the<br />

<strong>in</strong>puts to, and receive the output from, the application process via sockets, nfs or other forms of<br />

communication. The agents run on the same mach<strong>in</strong>e of the SM and communicate with it us<strong>in</strong>g the filesystem,<br />

<strong>in</strong> the follow<strong>in</strong>g way: the SM writes the <strong>in</strong>put of the query on a file (say f<strong>in</strong>), then the agent communicates the<br />

<strong>in</strong>put to the (possibly remote) application, waits for the result and writes it on another file (say fout).<br />

After the execution of the command the SDB looks as follows:<br />

As the application process starts, a new query is automatically prepared to save the output related to the<br />

<strong>in</strong>itialization of the application.<br />

The WebSM presents to the user a page on which are listed all the applications available. For each<br />

application there is some <strong>in</strong><strong>format</strong>ion about the mach<strong>in</strong>e <strong>in</strong> which it resides (power and load of the mach<strong>in</strong>e,<br />

geographic location, etc.) and the list of the processes that run that application. Each runn<strong>in</strong>g process has a<br />

l<strong>in</strong>k; click<strong>in</strong>g on it the user adds the process to the list of the active processes of the session. Moreover, the user<br />

can start a new application (command ) by activat<strong>in</strong>g the correspond<strong>in</strong>g l<strong>in</strong>k [“START”]. The<br />

new process that runs the application will become, automatically, an active process of the session.<br />

2.3 Queries<br />

A query is a tuple .The user creates a query with<strong>in</strong> a session us<strong>in</strong>g the<br />

command , where is the <strong>in</strong>put of the query. A query can be submitted to a process us<strong>in</strong>g<br />

the command where is the session, is the query and is the process.<br />

Each query of a session has a status. Here is the list of all statuses and their mean<strong>in</strong>g: Input: the query<br />

has an <strong>in</strong>put, but it is not submitted to any process; Submitted: the <strong>in</strong>put of the query has been submitted to a<br />

process, the identifier of the process and the submission time is conta<strong>in</strong>ed <strong>in</strong> the ; Runn<strong>in</strong>g: the process<br />

to which was the query submitted is now process<strong>in</strong>g it; Done: the process has completed the computation and<br />

conta<strong>in</strong>s its output;<br />

The query 1.1 (the query 1 of the session 1) has been submitted to the process 1 which is now serv<strong>in</strong>g it. The<br />

query 1.2 is not yet submitted to any process.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!