FileDocCategorySizeDatePackage
DomainDiagnostics.javaAPI DocGlassfish v2 API4500Fri May 04 22:24:08 BST 2007com.sun.enterprise.admin.mbeans

DomainDiagnostics

public class DomainDiagnostics extends Object implements DomainDiagnosticsMBean
This is called DiagnosticMBean because it is meant to aid the diagnostice services. In future this mBean is expected to provide more diagnostic service specific methods.
author
Sreenivas Munnangi

Fields Summary
protected Logger
_logger
private com.sun.enterprise.server.pluggable.PluggableFeatureFactory
featureFactory
Constructors Summary
public DomainDiagnostics()
default constructor

           
      
            initPluggableFeatureFactory();
    
Methods Summary
public java.lang.StringgenerateReport(java.util.Map input)
get DAS diagnostic report

        if(input != null) {
            if(featureFactory != null) {
                com.sun.enterprise.diagnostics.DiagnosticAgent agent = 
                        featureFactory.getDiagnosticAgent();
                 return agent.generateReport(input);
            }
            throw new Exception("Unable to retrieve feature factory");
        }
        throw new Exception(" Null input");
    
public java.util.ListgetConfidentialProperties()

param
repositoryDir absolute path of central repository
return
list of attributes being masked with ****
throw
DiagnosticException

        if(featureFactory != null) {
            com.sun.enterprise.diagnostics.DiagnosticAgent agent = 
                        featureFactory.getDiagnosticAgent();
            String repositoryDir =  ApplicationServer.getServerContext().
                    getInstanceEnvironment().getInstancesRoot();
            return agent.getConfidentialProperties(repositoryDir);    
        }
        throw new Exception(" Unable to retrive Pluggable Feature Factory");
    
private voidinitPluggableFeatureFactory()

        featureFactory = 
                ApplicationServer.getServerContext().getPluggableFeatureFactory();
        if (featureFactory == null) {
            _logger.log(Level.WARNING,
                    "diagnostic-service.error_initalize_pluggable_factory");
        }