Examples of AvailabilityService


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

    * Get the String value of the ha-store-healthcheck-interval-in-seconds attribute under availability-service
    * element from domain.xml
    * return null if not found
    */
    public String getHaStoreHealthcheckIntervalInSecondsStringFromConfigDynamic() {
        AvailabilityService as = this.getAvailabilityServiceDynamic();
        if(as == null) {
            return null;
        }
        return as.getHaStoreHealthcheckIntervalInSeconds();       
    }   
View Full Code Here

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

    * Get the String value of the ha-agent-port attribute under availability-service
    * element from domain.xml
    * return null if not found
    */   
    public String getHadbAgentPortFromConfig() {
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            return null;
        }
        return as.getHaAgentPort();
    }
View Full Code Here

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

    * Get the String value of the ha-agent-port attribute under availability-service
    * element from domain.xml
    * return null if not found
    */   
    public String getHadbAgentPortFromConfigDynamic() {
        AvailabilityService as = this.getAvailabilityServiceDynamic();
        if(as == null) {
            return null;
        }
        return as.getHaAgentPort();
    }   
View Full Code Here

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

    * Get the String value of the ha-agent-hosts attribute under availability-service
    * element from domain.xml
    * return null if not found
    */   
    public String getHadbAgentHostsFromConfig() {
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            return null;
        }
        return as.getHaAgentHosts();
    }
View Full Code Here

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

    * Get the String value of the ha-agent-hosts attribute under availability-service
    * element from domain.xml
    * return null if not found
    */   
    public String getHadbAgentHostsFromConfigDynamic() {
        AvailabilityService as = this.getAvailabilityServiceDynamic();
        if(as == null) {
            return null;
        }
        return as.getHaAgentHosts();
    }   
View Full Code Here

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

                        "clb.caught_an_exception",
                        ex);
            return;
        }

        AvailabilityService haService = instanceConfig.getAvailabilityService();

        if (haService == null) {
            _logger.log(Level.SEVERE,
                        "clb.no_availability_service_found");
            return;
        }

        ConvergedLoadBalancer clb = haService.getConvergedLoadBalancer();

        if (clb == null) {
            _logger.log(Level.INFO,
                    "clb.no_clb_entry_found");
            return;
View Full Code Here

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

     *
     * @return The sip-container-availability element from domain.xml,
     * or.null if not found
     */
    public SipContainerAvailability getSipContainerAvailability() {
        AvailabilityService availabilityServiceBean = getAvailabilityService();

        if (availabilityServiceBean == null) {
            return null;
        }

        return availabilityServiceBean.getSipContainerAvailability();
    }
View Full Code Here

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

            ServerContext sc = com.sun.enterprise.server.ondemand.
                    OnDemandServer.getServerContext();
            ConfigContext instanceConfigContext = sc.getConfigContext();
            Config instanceConfig = ServerBeansFactory.
                    getConfigBean(instanceConfigContext);
            AvailabilityService haService = instanceConfig.
                    getAvailabilityService();
            ConvergedLoadBalancer clb = haService.getConvergedLoadBalancer();
            String clbConfigName = clb.getConvergedLbConfigName();
            clbConfig = ((Domain) ctx.getRootConfigBean()).
                    getConvergedLbConfigs().getConvergedLbConfigByName(
                    clbConfigName);
        } catch (Exception ex) {
View Full Code Here

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

    private PersistenceType getPersistenceType(String clusterName)
    {
        try
        {
            Config                      config      = ClusterHelper.getConfigForCluster(getConfigContext(), clusterName);
            AvailabilityService         avail       = config.getAvailabilityService();
            WebContainerAvailability    webAvail    = avail.getWebContainerAvailability();
            String type = webAvail.getPersistenceType();

            if("ha".equals(type))
                return PersistenceType.HA;
        }
View Full Code Here

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

    * Get the availability-enabled from domain.xml.
    * return false if not found
    */  
    public boolean getAvailabilityEnabledFromConfig() {
        _logger.finest("in EJBServerConfigLookup>>getAvailabilityEnabledFromConfig");
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            _logger.fine("AvailabilityService was not defined - check domain.xml");
            return false;
        }       
        return as.isAvailabilityEnabled();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.