org.jdiagnose.library
Class PingableDiagnostic

java.lang.Object
  extended byorg.jdiagnose.DiagnosticUnit
      extended byorg.jdiagnose.library.PingableDiagnostic
All Implemented Interfaces:
Diagnostic, DiagnosticContainer, DiagnosticUnitLifeCycle

public class PingableDiagnostic
extends DiagnosticUnit

Diagnoses an object that implements the Pingable interface

Author:
jmccrindle
See Also:
Pingable

Constructor Summary
PingableDiagnostic()
          Creates a new DiagnosticUnit.
PingableDiagnostic(Pingable pingable)
          Creates a new DiagnosticUnit.
PingableDiagnostic(java.lang.String name, Pingable pingable)
          Create a new DiagnosticUnit with a Fully Qualified Name
 
Method Summary
 void diagnosePing()
           
 Pingable getPingable()
           
 void setPingable(Pingable pingable)
           
 
Methods inherited from class org.jdiagnose.DiagnosticUnit
assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertTrue, assertTrue, diagnose, getDiagnosticContainers, getDiagnostics, getName, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingableDiagnostic

public PingableDiagnostic()
Creates a new DiagnosticUnit. It's name defaults to the FQ class name.


PingableDiagnostic

public PingableDiagnostic(java.lang.String name,
                          Pingable pingable)
Create a new DiagnosticUnit with a Fully Qualified Name

Parameters:
name - the name of this diagnostic.

PingableDiagnostic

public PingableDiagnostic(Pingable pingable)
Creates a new DiagnosticUnit. It's name defaults to the FQ class name.

Method Detail

diagnosePing

public void diagnosePing()
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

getPingable

public Pingable getPingable()

setPingable

public void setPingable(Pingable pingable)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.