Package lcmc.crm.domain

Examples of lcmc.crm.domain.CrmXml$ColocationData


    protected void setParameters(final Map<String, String> resourceNode) {
        if (resourceNode == null) {
            return;
        }
        final boolean infoPanelOk = isInfoPanelOk();
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (crmXML == null) {
            LOG.appError("setParameters: crmXML is null");
            return;
        }
        /* Attributes */
        final String[] params = getEnabledSectionParams(crmXML.getOcfMetaDataParameters(resourceAgent,
                getService().isMaster()));
        final ClusterStatus cs = getBrowser().getClusterStatus();
        if (params != null) {
            final String newMetaAttrsId = cs.getMetaAttrsId(getService().getCrmId());
            if ((savedMetaAttrsId == null && newMetaAttrsId != null)
View Full Code Here


        optionsPanel.add(sectionPanel);
    }

    @Override
    public String[] getParametersFromXML() {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return getEnabledSectionParams(crmXML.getOcfMetaDataParameters(resourceAgent, getService().isMaster()));
    }
View Full Code Here

    @Override
    protected boolean checkParam(final String param, final Value newValue) {
        if ("ip".equals(param) && newValue != null && !Tools.isIp(newValue.getValueForConfig())) {
            return false;
        }
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.checkParam(resourceAgent, param, newValue);
    }
View Full Code Here

            final Value paramDefault = getBrowser().getRscDefaultsInfo().getResource().getValue(param);
            if (paramDefault != null && !paramDefault.isNothingSelected()) {
                return paramDefault;
            }
        }
        final CrmXml crmXML = getBrowser().getCrmXml();
        return new StringValue(crmXML.getDefaultValue(resourceAgent, param));
    }
View Full Code Here

        }
    }

    @Override
    protected Value getParamPreferred(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return new StringValue(crmXML.getPreferredValue(resourceAgent, param));
    }
View Full Code Here

        return new StringValue(crmXML.getPreferredValue(resourceAgent, param));
    }

    @Override
    protected Value[] getParamPossibleChoices(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (isCheckBox(param)) {
            return crmXML.getCheckBoxChoices(resourceAgent, param);
        } else {
            final CloneInfo ci = getCloneInfo();
            final boolean ms = ci != null && ci.getService().isMaster();
            return crmXML.getComboBoxChoices(resourceAgent, param, ms);
        }
    }
View Full Code Here

        }
    }

    @Override
    protected String getParamShortDesc(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getShortDesc(resourceAgent, param);
    }
View Full Code Here

        return crmXML.getShortDesc(resourceAgent, param);
    }

    @Override
    protected String getParamLongDesc(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getLongDesc(resourceAgent, param);
    }
View Full Code Here

    /**
     * Returns section to which the specified parameter belongs.
     */
    @Override
    protected String getSection(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getSectionForDisplay(resourceAgent, param);
    }
View Full Code Here

            @Override
            public void run() {
                application.isSwingThread();
                serviceMenu.removeAll();
                final Point2D pos = serviceMenu.getPos();
                final CrmXml crmXML = serviceInfo.getBrowser().getCrmXml();
                final ResourceAgent fsService = crmXML.getResourceAgent("Filesystem",
                                                                        ResourceAgent.HEARTBEAT_PROVIDER,
                                                                        ResourceAgent.OCF_CLASS_NAME);
                if (crmXML.isLinbitDrbdResourceAgentPresent()) { /* just skip it, if it is not */
                    /* Linbit:DRBD */
                    addDrbdLinbitMenu(serviceInfo, serviceMenu, crmXML, pos, fsService, runMode);
                }
                if (crmXML.isDrbddiskResourceAgentPresent()) { /* just skip it,
                                                     if it is not */
                    /* drbddisk */
                    addDrbddiskMenu(serviceInfo, serviceMenu, crmXML, pos, fsService, runMode);
                }
                final ResourceAgent ipService = crmXML.getResourceAgent("IPaddr2",
                                                                        ResourceAgent.HEARTBEAT_PROVIDER,
                                                                        ResourceAgent.OCF_CLASS_NAME);
                if (ipService != null) { /* just skip it, if it is not*/
                    /* ipaddr */
                    addIpMenu(serviceInfo, serviceMenu, pos, ipService, runMode);
View Full Code Here

TOP

Related Classes of lcmc.crm.domain.CrmXml$ColocationData

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.