Examples of ExportConfigurationType


Examples of org.voltdb.compiler.deploymentfile.ExportConfigurationType

        export.setEnabled(m_elenabled && m_elloader != null && !m_elloader.trim().isEmpty());

        ServerExportEnum exportTarget = ServerExportEnum.fromValue(m_elExportTarget.toLowerCase());
        export.setTarget(exportTarget);
        if((m_elConfig != null) && (m_elConfig.size() > 0)) {
            ExportConfigurationType exportConfig = factory.createExportConfigurationType();
            List<PropertyType> configProperties = exportConfig.getProperty();

            for( Object nameObj: m_elConfig.keySet()) {
                String name = String.class.cast(nameObj);

                PropertyType prop = factory.createPropertyType();
View Full Code Here

Examples of org.voltdb.compiler.deploymentfile.ExportConfigurationType

            //Override for tests
            String dexportClientClassName = System.getProperty(ExportDataProcessor.EXPORT_TO_TYPE, exportClientClassName);
            prop.setValue(dexportClientClassName);
        }

        ExportConfigurationType exportConfiguration = exportType.getConfiguration();
        if (exportConfiguration != null) {

            List<PropertyType> configProperties = exportConfiguration.getProperty();
            if (configProperties != null && ! configProperties.isEmpty()) {

                for( PropertyType configProp: configProperties) {
                    ConnectorProperty prop = catconn.getConfig().add(configProp.getName());
                    prop.setName(configProp.getName());
                    prop.setValue(configProp.getValue());
                }
            }
        }

        if (!adminstate) {
            hostLog.info("Export configuration is present and is " +
               "configured to be disabled. Export will be disabled.");
        } else {
            hostLog.info("Export is configured and enabled with type=" + exportType.getTarget());
            if (exportConfiguration != null && exportConfiguration.getProperty() != null) {
                hostLog.info("Export configuration properties are: ");
                for (PropertyType configProp : exportConfiguration.getProperty()) {
                    if (!configProp.getName().equalsIgnoreCase("password")) {
                        hostLog.info("Export Configuration Property NAME=" + configProp.getName() + " VALUE=" + configProp.getValue());
                    }
                }
            }
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.