g-Eclipse
Release 1.0.0

eu.geclipse.core.simpleTest
Class ReachabilityTest

java.lang.Object
  extended by eu.geclipse.core.simpleTest.AbstractSimpleTest
      extended by eu.geclipse.core.simpleTest.ReachabilityTest
All Implemented Interfaces:
ISimpleTest

public class ReachabilityTest
extends AbstractSimpleTest


Constructor Summary
ReachabilityTest(ISimpleTestDescription description)
          Create a new PingTest from the specified ISimpleTestDescription.
 
Method Summary
 double ping(java.net.InetAddress address)
          Tries to reach a host and returns the time it took to reach it.
 
Methods inherited from class eu.geclipse.core.simpleTest.AbstractSimpleTest
getDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReachabilityTest

public ReachabilityTest(ISimpleTestDescription description)
Create a new PingTest from the specified ISimpleTestDescription.

Parameters:
description - The test description holding the information needed to create the test. This should always be a ReachabilityTestDescription.
Method Detail

ping

public double ping(java.net.InetAddress address)
Tries to reach a host and returns the time it took to reach it.

Parameters:
address - The machine to be pinged
Returns:
Returns the time it took to reach the host in ms, -1 if the operation failed.

g-Eclipse
Release 1.0.0