|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mwalk.core.Hop
A class representing a single hop in an mtrace.
Field Summary | |
private int |
close
Parsing state |
java.lang.String |
ip
IP address of next hop |
java.lang.String |
name
Hostname of next hop |
private int |
open
Parsing state |
int |
overall
Overall number of packets seen |
int |
rate
Packet rate |
java.lang.String |
ratio
Loss ratio |
java.lang.String |
upstream
Upstream router |
Constructor Summary | |
Hop(java.lang.String line)
Constructor. |
Method Summary | |
protected int |
nextInt(java.lang.String line)
Parse the next integer enclosed by brackets. |
protected java.lang.String |
nextString(java.lang.String line)
Parse the next string enclosed by brackets. |
void |
parse(java.lang.String line)
Parse a hop line into its constituent parts. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.lang.String ip
public java.lang.String name
public java.lang.String upstream
public java.lang.String ratio
public int overall
public int rate
private int open
private int close
Constructor Detail |
public Hop(java.lang.String line) throws BuildException
String
- hop line to parseBuildException
- if hop could not be parsedMethod Detail |
public void parse(java.lang.String line) throws BuildException
String
- hop line to parseBuildException
- if hop could not be parsedprotected java.lang.String nextString(java.lang.String line) throws BuildException
String
line to parseBuildException
- if string could not be parsedprotected int nextInt(java.lang.String line) throws BuildException
String
line to parseBuildException
- if integer could not be parsed
|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |