Examples of AvailabilityService


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

    /**
    * Get the web-container-availability element from domain.xml.
    * return null if not found
    */    
    private WebContainerAvailability getWebContainerAvailability() {
        AvailabilityService availabilityServiceBean = this.getAvailabilityService();
        if(availabilityServiceBean == null) {
            return null;
        }
        return availabilityServiceBean.getWebContainerAvailability();
    }
View Full Code Here

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

    */  
    public boolean getAvailabilityEnabledFromConfig() {
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("in ServerConfigLookup>>getAvailabilityEnabledFromConfig");
        }
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            if(_logger.isLoggable(Level.FINEST)) {
                _logger.finest("AvailabilityService was not defined - check domain.xml");
            }
            return false;
        }       
        return as.isAvailabilityEnabled();
    }
View Full Code Here

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

    public String getStorePoolJndiNameFromConfig() {
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("in ServerConfigLookup>>getStorePoolJndiNameFromConfig");
        }
        String result = DEFAULT_STORE_POOL_JNDI_NAME;
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            return result;
        }
        String storePoolJndiName = as.getStorePoolName();
        if(storePoolJndiName != null) {
            result = storePoolJndiName;
        }
        return result;
    }
View Full Code Here

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

    * Get the hadb health check string from domain.xml.
    *7.0 xpath was "/server/availability-service/persistence-store/property[@name='hadb-health-check-enabled']"
    * returns the attribute ha-store-healthcheck-enabled in <availability-service>
    */
    public boolean getHadbHealthCheckFromConfig() {
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            return false;
        }
        return as.isHaStoreHealthcheckEnabled();
    }
View Full Code Here

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

    * Get the hadb health check string from domain.xml.
    *7.0 xpath was "/server/availability-service/persistence-store/property[@name='hadb-health-check-enabled']"
    * returns the attribute ha-store-healthcheck-enabled in <availability-service>
    */
    public boolean getHadbHealthCheckFromConfigDynamic() {
        AvailabilityService as = this.getAvailabilityServiceDynamic();
        if(as == null) {
            return false;
        }
        return as.isHaStoreHealthcheckEnabled();
    }   
View Full Code Here

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

    * return null if not found
    * @param propName
    */    
    public String getAvailabilityServicePropertyString(String propName) {
        String result = null;
        AvailabilityService availabilityServiceBean = this.getAvailabilityService();
        if( (availabilityServiceBean != null) && (availabilityServiceBean.sizeElementProperty() > 0) ) {
            ElementProperty[] props = availabilityServiceBean.getElementProperty();
            for (int i = 0; i < props.length; i++) {
                String name = props[i].getAttributeValue("name");
                String value = props[i].getAttributeValue("value");
                if (name.equalsIgnoreCase(propName)) {
                    result = value;
View Full Code Here

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

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

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

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

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

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

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 getHaStoreHealthcheckIntervalInSecondsStringFromConfig() {
        AvailabilityService as = this.getAvailabilityService();
        if(as == null) {
            return null;
        }
        return as.getHaStoreHealthcheckIntervalInSeconds();       
    }   
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.