com.continuent.tungsten.common.network
Class PingLauncher

java.lang.Object
  extended by com.continuent.tungsten.common.network.PingLauncher

public class PingLauncher
extends java.lang.Object

Provides a simple utility for checking host accessibility.

Author:
Robert Hodges

Constructor Summary
PingLauncher()
          Creates a new Launcher instance.
 
Method Summary
protected static void exitWithFailure(java.lang.String message)
           
protected static void exitWithNotFound()
           
protected static void exitWithSuccess()
           
static void main(java.lang.String[] argv)
          Main method to permit external invocation.
protected static void println(java.lang.String message)
          Print to standard out.
 void process(java.lang.String[] argv)
          Process command request.
 void setHost(java.lang.String host)
           
 void setMethod(java.lang.String method)
           
 void setTimeout(int timeout)
           
 void setVerbose(boolean verbose)
           
protected static void usage()
          Print usage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingLauncher

public PingLauncher()
Creates a new Launcher instance.

Method Detail

setVerbose

public void setVerbose(boolean verbose)

setTimeout

public void setTimeout(int timeout)

setMethod

public void setMethod(java.lang.String method)

setHost

public void setHost(java.lang.String host)

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Main method to permit external invocation.

Throws:
java.lang.Exception

process

public void process(java.lang.String[] argv)
Process command request.


println

protected static void println(java.lang.String message)
Print to standard out.


usage

protected static void usage()
Print usage.


exitWithFailure

protected static void exitWithFailure(java.lang.String message)

exitWithNotFound

protected static void exitWithNotFound()

exitWithSuccess

protected static void exitWithSuccess()