Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.Config


  
    /*
     * Gets the current monitoring level for Jdbc pools
     */
    private MonitoringLevel getJdbcPoolMonitoringLevel() {
        Config cfg = null;
  MonitoringLevel off = MonitoringLevel.OFF;
  MonitoringLevel l = off;

  try {
            cfg = ServerBeansFactory.getConfigBean(
          ApplicationServer.getServerContext().getConfigContext());
     
            String lvl =
          cfg.getMonitoringService().getModuleMonitoringLevels().getJdbcConnectionPool();
      l = MonitoringLevel.instance( lvl );
      if (l == null ) {
          //dont bother to throw an exception
          return off;
      }
View Full Code Here


    /*
     * Gets the current monitoring level for connector pools
     */
    private MonitoringLevel getConnectorPoolMonitoringLevel() {
        Config cfg ;
  MonitoringLevel l ;

  try {
            cfg = ServerBeansFactory.getConfigBean(
          ApplicationServer.getServerContext().getConfigContext());
     
            String lvl =
                    cfg.getMonitoringService().getModuleMonitoringLevels().getConnectorConnectionPool();
      l = MonitoringLevel.instance( lvl );
      if (l == null ) {
          //dont bother to throw an exception
          return MonitoringLevel.OFF;
      }
View Full Code Here

            
            ConfigContext configContext = serverContext.getConfigContext();
            assert(configContext != null);
       
            // IiopService iiopServiceBean = ServerBeansFactory.getIiopServiceBean(configContext);
      Config config = ServerBeansFactory.getConfigBean(configContext);

            assert(config != null);

            // orbBean = iiopServiceBean.getOrb();
      com.sun.enterprise.config.serverbeans.ThreadPools
          threadpoolsElement = config.getThreadPools();
            assert (threadpoolsElement != null);

      com.sun.enterprise.config.serverbeans.ThreadPool[]
      allThreadpools = threadpoolsElement.getThreadPool();
      for (int i = 0; i < allThreadpools.length; i++) {
View Full Code Here

    }
   
   
    private void initMonitoringLevel() {
        try{
            Config cfg = ServerBeansFactory
                .getConfigBean(
                    WebContainer.getInstance().getServerContext().getConfigContext());

            MonitoringLevel monitoringLevel = MonitoringLevel.OFF; // default per DTD

            if (cfg.getMonitoringService() != null) {
                ModuleMonitoringLevels levels =
                    cfg.getMonitoringService().getModuleMonitoringLevels();
                if (levels != null) {
                    monitoringLevel = MonitoringLevel.instance(
                                                    levels.getHttpService());
                }
            }
View Full Code Here

    /**
    * Get the config element from domain.xml.
    * return null if not found
    */    
    private Config getConfigBean() {
        Config configBean = null;
        ConfigContext configCtx = this.getConfigContext();
        try {
            configBean = ServerBeansFactory.getConfigBean(configCtx);
        } catch (ConfigException ex) {}

View Full Code Here

    /**
    * Get the config element from domain.xml.
    * return null if not found
    */    
    private Config getConfigBeanDynamic() {
        Config configBean = null;
        ConfigContext configCtx = this.getConfigContextDynamic();
        try {
            configBean = ServerBeansFactory.getConfigBean(configCtx);
        } catch (ConfigException ex) {}

View Full Code Here

    /**
    * Get the http-service element from domain.xml.
    * return null if not found
    */    
    protected HttpService getHttpService() {
        Config configBean = this.getConfigBean();
        if(configBean == null) {
            return null;
        }
        return configBean.getHttpService();
    }
View Full Code Here

    /**
    * Get the availability-service element from domain.xml.
    * return null if not found
    */    
    protected AvailabilityService getAvailabilityService() {
        Config configBean = this.getConfigBean();
        if(configBean == null) {
            return null;
        }
        return configBean.getAvailabilityService();
    }   
View Full Code Here

    /**
    * Get the availability-service element from domain.xml.
    * return null if not found
    */    
    protected AvailabilityService getAvailabilityServiceDynamic() {
        Config configBean = this.getConfigBeanDynamic();
        if(configBean == null) {
            return null;
        }
        return configBean.getAvailabilityService();
    }   
View Full Code Here

    * Get the session manager bean from domain.xml
    * return null if not defined or other problem
    * 7.0 xpath was "/server/web-container/session-config/session-manager";
    */ 
    public SessionManager getInstanceSessionManager() {
        Config configBean = this.getConfigBean();
        if(configBean == null) {
            return null;
        }
       
        com.sun.enterprise.config.serverbeans.WebContainer webContainerBean
            = configBean.getWebContainer();
        if(webContainerBean == null) {
            return null;
        }
       
        SessionConfig sessionConfigBean = webContainerBean.getSessionConfig();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.Config

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.