Package lcmc.cluster.ui.widget

Examples of lcmc.cluster.ui.widget.Check


        if (buttonClass(nextButton()) != null) {
            enableComponents(new JComponent[]{buttonClass(nextButton())});
            application.invokeLater(new Runnable() {
                @Override
                public void run() {
                    buttonClass(nextButton()).setEnabledCorrect(new Check(incorrect, changed));
                }
            });
        }
    }
View Full Code Here


            getHost().getDistString(
                prefix + ".install." + index)).replaceAll(";", ";<br>&gt; ").replaceAll("&&", "<br>&gt; &&");
    }

    protected void enableNextButtons(final List<String> incorrect, final List<String> changed) {
        final Check check = new Check(incorrect, changed);
        application.invokeLater(new Runnable() {
            @Override
            public void run() {
                buttonClass(nextButton()).setEnabledCorrect(check);
                for (final MyButton button : nextButtons()) {
                    button.setEnabled(check.isCorrect());
                }
            }
        });
    }
View Full Code Here

        if (wi == null || wi.getValue() == null) {
            incorrect.add(FS_RES_PARAM_DEV);
        }

        final Check check = new Check(incorrect, new ArrayList<String>());
        check.addCheck(super.checkResourceFields(param, params));
        return check;
    }
View Full Code Here

     */
    Check checkResourceFields(final String param, final String[] params, final boolean fromDrbdInfo) {
        final List<String> incorrect = new ArrayList<String>();
        final List<String> changed = new ArrayList<String>();
        final DrbdXml dxml = getBrowser().getDrbdXml();
        final Check check = new Check(incorrect, changed);
        if (dxml != null && dxml.isDrbdDisabled()) {
            incorrect.add("DRBD is disabled");
        }
        for (final VolumeInfo dvi : drbdVolumes) {
            check.addCheck(dvi.checkResourceFields(param, dvi.getParametersFromXML(), fromDrbdInfo, true));
        }

        if (!checkPortCorrect()) {
            incorrect.add("port");
        }

        if (!checkAddressCorrect()) {
            incorrect.add("address");
        }

        if (checkHostAddressesFieldsChanged()) {
            changed.add("host address");
        }

        if (isSectionEnabled(SECTION_PROXY)) {
            if (!checkProxyPortCorrect(insidePortComboBox, insidePortComboBoxWizard, savedInsidePort)) {
                incorrect.add("proxy inside port");
            }

            if (!checkProxyPortCorrect(outsidePortComboBox, outsidePortComboBoxWizard, savedOutsidePort)) {
                incorrect.add("proxy outside port");
            }

            if (!checkProxyInsideIpCorrect()) {
                incorrect.add("proxy inside IP");
            }

            if (!checkProxyOutsideIpCorrect()) {
                incorrect.add("proxy outside IP");
            }

            if (checkProxyFieldsChanged()) {
                changed.add("proxy");
            }
        }

        check.addCheck(super.checkResourceFields(param, params));
        return check;
    }
View Full Code Here

     */
    @Override
    public Check checkResourceFields(final String param, final String[] params) {
        final List<String> incorrect = new ArrayList<String>();
        final List<String> changed = new ArrayList<String>();
        final Check check = new Check(incorrect, changed);
        for (final ResourceInfo dri : getDrbdResources()) {
            check.addCheck(dri.checkResourceFields(param, dri.getParametersFromXML(), true));
        }
        if (getBrowser().getDrbdResourceNameHash().isEmpty()) {
            getBrowser().putDrbdResHash();
            incorrect.add("no resources inside");
        } else {
            getBrowser().putDrbdResHash();
        }

        final DrbdXml dxml = getBrowser().getDrbdXml();
        if (dxml != null && dxml.isDrbdDisabled()) {
            incorrect.add("DRBD is disabled");
        }

        check.addCheck(super.checkResourceFields(param, params));
        return check;
    }
View Full Code Here

        final List<String> incorrect = new ArrayList<String>();
        final List<String> changed = new ArrayList<String>();
        if (dxml != null && dxml.isDrbdDisabled()) {
            incorrect.add("DRBD is disabled");
        }
        final Check check = new Check(incorrect, changed);
        for (final BlockDevInfo bdi : getBlockDevInfos()) {
            if (bdi != null) {
                check.addCheck(bdi.checkResourceFields(param,
                                                       bdi.getParametersFromXML(),
                                                       fromDrbdInfo,
                                                       fromDrbdResourceInfo,
                                                       true));
            }
        }
        check.addCheck(super.checkResourceFields(param, params));
        return check;
    }
View Full Code Here

                }
            }
        } finally {
            mConstraintPHLock.unlock();
        }
        final Check check = new Check(incorrect, changed);
        check.addCheck(super.checkResourceFields(param, params));
        return check;
    }
View Full Code Here

TOP

Related Classes of lcmc.cluster.ui.widget.Check

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.