SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class Diagnostics

java.lang.Object
  extended by org.smartfrog.sfcore.common.Diagnostics

public final class Diagnostics
extends java.lang.Object

Diagnostic helper class to extract some information that may help in support.


Method Summary
static void doReport(java.io.PrintStream outPS)
          Print a report to the given stream.
static void doReport(java.lang.StringBuffer out)
          Print a report to the given StringBuffer.
static void doReport(java.lang.StringBuffer out, ComponentDescription cd)
          Print a report to the given StringBuffer.
static void doReport(java.lang.StringBuffer out, Prim prim)
          Print a report to the given StringBuffer.
static boolean doReportLocalNetwork(java.lang.StringBuffer out)
          Report simple local network diagnostics by default bound to local hostname
static boolean doReportRemoteNetwork(java.lang.StringBuffer out, java.lang.String uriString)
          Report simple remote network diagnostics by default bound to #SMARTFROG_URL
static java.lang.String getImplementationVersion(java.lang.Class clazz)
          Helper method to get the implementation version.
static void header(java.lang.StringBuffer out, java.lang.String section)
           
static java.io.File[] listLibraries(java.lang.String dir)
          return the list of jar files existing in "dir".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

listLibraries

public static java.io.File[] listLibraries(java.lang.String dir)
return the list of jar files existing in "dir".

Parameters:
dir - directory
Returns:
the list of jar files existing in "dir" or null if an error occurs. Derived from Ant Diagnostics class

getImplementationVersion

public static java.lang.String getImplementationVersion(java.lang.Class clazz)
Helper method to get the implementation version.

Parameters:
clazz - the class to get the information from.
Returns:
null if there is no package or implementation version. '?.?' for JDK 1.0 or 1.1. Derived from Ant Diagnostics class

doReport

public static void doReport(java.io.PrintStream outPS)
Print a report to the given stream.

Parameters:
outPS - the stream to print the report to.

doReport

public static void doReport(java.lang.StringBuffer out,
                            ComponentDescription cd)
Print a report to the given StringBuffer.

Parameters:
out - the StringBuffer to print the report to.
cd - the SmartFrog component description where to extract info from. Derived from Ant Diagnostics class

doReport

public static void doReport(java.lang.StringBuffer out,
                            Prim prim)
Print a report to the given StringBuffer.

Parameters:
out - the StringBuffer to print the report to.
prim - the SmartFrog component where to extract info from. Derived from Ant Diagnostics class

doReport

public static void doReport(java.lang.StringBuffer out)
Print a report to the given StringBuffer.

Parameters:
out - the StringBuffer to print the report to.

header

public static void header(java.lang.StringBuffer out,
                          java.lang.String section)

doReportLocalNetwork

public static boolean doReportLocalNetwork(java.lang.StringBuffer out)
Report simple local network diagnostics by default bound to local hostname

Parameters:
out - the stream to print the report to.
Returns:
failed. It reports if the test failed or not.

doReportRemoteNetwork

public static boolean doReportRemoteNetwork(java.lang.StringBuffer out,
                                            java.lang.String uriString)
Report simple remote network diagnostics by default bound to #SMARTFROG_URL

Parameters:
out - the stream to print the report to.
Returns:
failed. It reports if the test failed or not.

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP