Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Issue 270780043: Add method for getting ICMP latency from a host

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 6 months ago by bruce.yinhe.kth
Modified:
8 years, 6 months ago
CC:
fikri.firman, erneborg_kth.se, mfalgert_kth.se, byi_kth.se, kgve_kth.se, kirillb_kth.se, dmk_kth.se, teowey
Visibility:
Public.

Description

Add method for getting ICMP latency from a host

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M src/main/java/se/kth/crypt/server/core/SolicitationReceiver.java View 2 chunks +50 lines, -0 lines 1 comment Download

Messages

Total messages: 2
bruce.yinhe.kth
In order to elect the master node, the latency is one of the contributing factors. ...
8 years, 6 months ago (2015-10-11 22:21:54 UTC) #1
karthik.venkatesan85
8 years, 6 months ago (2015-10-12 08:17:07 UTC) #2
https://codereview.appspot.com/270780043/diff/1/src/main/java/se/kth/crypt/se...
File src/main/java/se/kth/crypt/server/core/SolicitationReceiver.java (right):

https://codereview.appspot.com/270780043/diff/1/src/main/java/se/kth/crypt/se...
src/main/java/se/kth/crypt/server/core/SolicitationReceiver.java:32: String
command = "ping -c 1 " + IPAddress;
1.Is it possible to have a switch statement to handle all different OS like
MAC,Windows and Linux?
2.How would the error connectivity issues during ICMP ping handled using try
catch?--->Asking this for my learning purpose
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b