mwalk Platform 0.3.0

mwalk.core
Class Hop

java.lang.Object
  |
  +--mwalk.core.Hop

public class Hop
extends java.lang.Object

A class representing a single hop in an mtrace.

Version:
1.0
Author:
Robert Chalmers

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ip

public java.lang.String ip
IP address of next hop

name

public java.lang.String name
Hostname of next hop

upstream

public java.lang.String upstream
Upstream router

ratio

public java.lang.String ratio
Loss ratio

overall

public int overall
Overall number of packets seen

rate

public int rate
Packet rate

open

private int open
Parsing state

close

private int close
Parsing state
Constructor Detail

Hop

public Hop(java.lang.String line)
    throws BuildException
Constructor.
Parameters:
String - hop line to parse
Throws:
BuildException - if hop could not be parsed
Method Detail

parse

public void parse(java.lang.String line)
           throws BuildException
Parse a hop line into its constituent parts.
Parameters:
String - hop line to parse
Throws:
BuildException - if hop could not be parsed

nextString

protected java.lang.String nextString(java.lang.String line)
                               throws BuildException
Parse the next string enclosed by brackets. String line to parse
Throws:
BuildException - if string could not be parsed

nextInt

protected int nextInt(java.lang.String line)
               throws BuildException
Parse the next integer enclosed by brackets. String line to parse
Throws:
BuildException - if integer could not be parsed

mwalk Platform 0.3.0

Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers