Package org.rioproject.deploy

Examples of org.rioproject.deploy.SystemRequirements


                    tableItem.attributeDescription = new JLabel(value);
                    addMore = false;
                    break;
                case 5: /* System Requirements */
                    ServiceLevelAgreements sl = sElem.getServiceLevelAgreements();
                    SystemRequirements s = sl.getSystemRequirements();
                    tableItem = new ServiceAttributeTableItem();
                    if(s==null) {
                        value = NOT_DECLARED;
                        addMore = false;
                    } else {
                        String[] ids = s.getSystemThresholdIDs();
                        SystemComponent[] systemComponents = s.getSystemComponents();
                        if(ids.length>0 || systemComponents.length>0) {
                            java.util.List<String> sysRequirements = new ArrayList<String>();
                            StringBuilder buff = new StringBuilder();
                            for (String id : ids) {
                                if (buff.length() > 0) {
                                    buff.append(", ");
                                }
                                ThresholdValues tVal = s.getSystemThresholdValue(id);
                                String val = String.format("ID: %s, High: %s, Low: %s",
                                                           id,
                                                           tVal.getHighThreshold(),
                                                           tVal.getLowThreshold());
                                sysRequirements.add(val);
View Full Code Here


        this.systemRequirements = systemRequirements;
    }

    public synchronized SystemRequirements getSystemRequirements() {
        if(systemRequirements==null)
            systemRequirements = new SystemRequirements();
        return systemRequirements;
    }
View Full Code Here

TOP

Related Classes of org.rioproject.deploy.SystemRequirements

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.