FileDocCategorySizeDatePackage
DiagnosticServiceHelper.javaAPI DocGlassfish v2 API3216Fri May 04 22:34:50 BST 2007com.sun.enterprise.diagnostics.util

DiagnosticServiceHelper

public class DiagnosticServiceHelper extends Object
Helper to get instance specific runtime information
author
Manisha Umbarje

Fields Summary
public static final String
OS_NAME
public static final String
SUN
public static final String
LINUX
Constructors Summary
Methods Summary
public static java.lang.StringgetConfigLocation()

	return ApplicationServer.getServerContext().getServerConfigURL();
    
public static java.lang.StringgetInstallationRoot()

    
        
            return System.getProperty("com.sun.aas.installRoot");
    
public static java.lang.StringgetInstanceName()

	return ApplicationServer.getServerContext().getInstanceName();
    
public static java.lang.StringgetInstanceRoot()

        try {
            return ApplicationServer.getServerContext().getInstallRoot();
        } catch (Exception e) {
            return System.getProperty("com.sun.aas.instanceRoot");
        }
    
public static booleanisSolaris()

        String osName = (System.getProperty(OS_NAME)).toLowerCase();

        if(osName.startsWith(SUN) || osName.startsWith(LINUX))
            return  true;
        return false;