|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhkl.zw.mkup.rattrap.localizer.tools.TracertWrapper
public class TracertWrapper
TracertWrapper is a wrapper around the common traceroute program that exists on many operating systems. In Windows, the program is called tracert. Surprisingly the Unix program name is longer. It is traceroute.
Field Summary | |
---|---|
static int |
MAX_HOPS
|
Constructor Summary | |
---|---|
TracertWrapper()
|
|
TracertWrapper(java.lang.String host)
|
Method Summary | |
---|---|
void |
execute()
Builds the command line string to execute traceroute depending on the operating system. |
ChartData |
getChartData()
Returns the data that was collected running traceroute. |
static void |
main(java.lang.String[] args)
Test driver for this class. |
void |
parseUnixOutput(java.io.BufferedReader in)
Parse the output of the traceroute program in Unix. |
void |
parseWin95Output(java.io.BufferedReader in)
Parses the output of the tracert program in Windows 95. |
void |
setAddress(java.lang.String addr)
Sets the address to perform the traceroute to. |
void |
setProgressIncr(int progress)
Sets the amount that the progress bar will be updated after each line of traceroute output. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_HOPS
Constructor Detail |
---|
public TracertWrapper(java.lang.String host)
public TracertWrapper()
Method Detail |
---|
public void setAddress(java.lang.String addr)
public void setProgressIncr(int progress)
public ChartData getChartData()
ChartData
public static void main(java.lang.String[] args)
public void execute()
public void parseWin95Output(java.io.BufferedReader in)
public void parseUnixOutput(java.io.BufferedReader in)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |