Web server now functional. Serving files, answering AJAX requests. Built using the Spark framework.
BUG=Web Server for communicating between the client-side (the UI, ie the IVS) and the back-end (the EICS)
The server is now working (can serve files, can receive data from the client, compute ...
6 years, 5 months ago
(2017-11-15 00:31:59 UTC)
#1
The server is now working (can serve files, can receive data from the client,
compute something, send data back to the client).
It is built using the Spark framework (to not reinvent the wheel and diminish
the effort required to code the basic functions like handling incoming request,
build a HTTP header,...), using the IDE Eclipse (configuration files might be
affected by the IDE).
https://codereview.appspot.com/339810043/diff/1/eclipse-workspace/myartefacti...
File eclipse-workspace/myartefactid/src/test/java/myartefactid/Test.java
(right):
https://codereview.appspot.com/339810043/diff/1/eclipse-workspace/myartefacti...
eclipse-workspace/myartefactid/src/test/java/myartefactid/Test.java:13:
get("/hello", (request, response) -> "Hello guys!");
Once the code run, the server will be working at the address
http://localhost:4567
The IVS should be visible there.
The page http://localhost:4567/hello displays also a dumb example showing the
server is up.
https://codereview.appspot.com/339810043/diff/1/eclipse-workspace/myartefacti...
eclipse-workspace/myartefactid/src/test/java/myartefactid/Test.java:14:
post("/sendmedata", (request, response) -> {
An AJAX call will be performed from the client-side to the URL /sendmedata, upon
which the server will answer with JSON data.
https://codereview.appspot.com/339810043/diff/20001/eclipse-workspace/myartef...
File eclipse-workspace/myartefactid/src/test/resources/public/index.html
(right):
https://codereview.appspot.com/339810043/diff/20001/eclipse-workspace/myartef...
eclipse-workspace/myartefactid/src/test/resources/public/index.html:227:
$dumb_button = $('<button>', { html: 'Send data'
}).click(function(){sendmedata();});
A button "Send data" is added below the UI, in order to test the communication
client-server
https://codereview.appspot.com/339810043/diff/20001/eclipse-workspace/myartef...
eclipse-workspace/myartefactid/src/test/resources/public/index.html:231:
function sendmedata() {
Function called when the button "Send data" is clicked.
This function sends an asynchronous request to the server (asynchrounous means
in the background, without blocking the UI while the request is processing).
While the server has answered, an alert window pops up with some JSON data.
Mon.20.Nov: The part of sending an asynchronous request seems more likely to be a parallel ...
6 years, 5 months ago
(2017-11-21 12:20:51 UTC)
#2
Mon.20.Nov:
The part of sending an asynchronous request seems more likely to be a
parallel or simultaneous request rather than asynchronous one.
Tue.21.Nov:
Based on what we are discussed in meeting with our TA, the alert
window that pops up with some JSON data, while the server is
answering, JSON data is possible to be the amount of latency
reduction.
1. What difference do you make between parallel and asynchronous requests? 2. The JSON data ...
6 years, 5 months ago
(2017-11-21 22:59:17 UTC)
#3
1. What difference do you make between parallel and asynchronous requests?
2. The JSON data (returned by the server, according to the EICS output)
should not only contain information about latency reduction, but also and first
of all the new topology proposed to reduce end-to-end distance of different
paths and thus reduce latency, so as to let user appreciate the improvement made
to the network by the EICS. Latency reduction or length of new cables that have
to be bult in the newly-proposed topology are just additional informations that
we will provide to make the IVS more informative and user-friendly.
________________________________
From: Farzad Hajibagheri <farzad2050@gmail.com>
Sent: Tuesday, November 21, 2017 1:20:49 PM
To: manu.chaud.18@gmail.com; dkostic@gmail.com; kirill.sc@gmail.com;
w406971526@gmail.com; zhubiwen509@gmail.com; ibolight91@gmail.com;
yulianlluo@gmail.com; farzad2050@gmail.com; reply@codereview-hr.appspotmail.com
Subject: Re: Web server now functional. Serving files, answering AJAX requests.
Built using the Spark framework. (issue 339810043 by manu.chaud.18@gmail.com)
Mon.20.Nov:
The part of sending an asynchronous request seems more likely to be a
parallel or simultaneous request rather than asynchronous one.
Tue.21.Nov:
Based on what we are discussed in meeting with our TA, the alert
window that pops up with some JSON data, while the server is
answering, JSON data is possible to be the amount of latency
reduction.
On 2017/11/21 22:59:17, manu.chaud_hotmail.fr wrote: > 1. What difference do you make between parallel and ...
6 years, 5 months ago
(2017-11-27 09:50:02 UTC)
#4
Message was sent while issue was closed.
On 2017/11/21 22:59:17, manu.chaud_hotmail.fr wrote:
> 1. What difference do you make between parallel and asynchronous requests?
> 2. The JSON data (returned by the server, according to the EICS output)
> should not only contain information about latency reduction, but also and
first
> of all the new topology proposed to reduce end-to-end distance of different
> paths and thus reduce latency, so as to let user appreciate the improvement
made
> to the network by the EICS. Latency reduction or length of new cables that
have
> to be bult in the newly-proposed topology are just additional informations
that
> we will provide to make the IVS more informative and user-friendly.
>
>
>
> ________________________________
> From: Farzad Hajibagheri <mailto:farzad2050@gmail.com>
> Sent: Tuesday, November 21, 2017 1:20:49 PM
> To: mailto:manu.chaud.18@gmail.com; mailto:dkostic@gmail.com;
mailto:kirill.sc@gmail.com;
> mailto:w406971526@gmail.com; mailto:zhubiwen509@gmail.com;
mailto:ibolight91@gmail.com;
> mailto:yulianlluo@gmail.com; mailto:farzad2050@gmail.com;
mailto:reply@codereview-hr.appspotmail.com
> Subject: Re: Web server now functional. Serving files, answering AJAX
requests.
> Built using the Spark framework. (issue 339810043 by
mailto:manu.chaud.18@gmail.com)
>
> Mon.20.Nov:
> The part of sending an asynchronous request seems more likely to be a
> parallel or simultaneous request rather than asynchronous one.
>
> Tue.21.Nov:
> Based on what we are discussed in meeting with our TA, the alert
> window that pops up with some JSON data, while the server is
> answering, JSON data is possible to be the amount of latency
> reduction.
I mean at a single moment of time for both of them or two different moment of
time for both. (23 November 2017 at 15:34)
Issue 339810043: Web server now functional. Serving files, answering AJAX requests. Built using the Spark framework.
(Closed)
Created 6 years, 5 months ago by manu_chaud
Modified 6 years, 5 months ago
Reviewers: dkostic, kirill.sc, Wei Wang, zhubiwen509, brahim Al-Qaysi, manu.chaud_hotmail.fr, farzad2050
Base URL:
Comments: 4