Examples of DeploymentEngine


Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String storeDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.MESSAGE_STORE_DIR;
            deploymentEngine.removeDeployer(
                    storeDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EndpointAdminException {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String endpointDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.ENDPOINTS_DIR;
            deploymentEngine.removeDeployer(
                    endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EndpointAdminException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String endpointDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.ENDPOINTS_DIR;

        for (Endpoint ep : synCfg.getDefinedEndpoints().values()) {
            if (ep.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        endpointDirPath + File.separator + ep.getFileName());
            }
        }
        deploymentEngine.addDeployer(
                new EndpointDeployer(), endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EventSourceAdminException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String eventSourceDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.EVENTS_DIR;

        for (SynapseEventSource ses : synCfg.getEventSources()) {
            if (ses.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        eventSourceDirPath + File.separator + ses.getFileName());
            }
        }
        deploymentEngine.addDeployer(new EventSourceDeployer(),
                eventSourceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EventSourceAdminException {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String eventSourceDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.EVENTS_DIR;
            deploymentEngine.removeDeployer(
                    eventSourceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig         AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unRegisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String endpointDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.EXECUTORS_DIR;
            deploymentEngine.removeDeployer(
                    endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig,
                                  SynapseEnvironment synapseEnvironment) {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String endpointDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.EXECUTORS_DIR;

        for (PriorityExecutor ep : synCfg.getPriorityExecutors().values()) {
            if (ep.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        endpointDirPath + File.separator + ep.getFileName());
            }
        }
        deploymentEngine.addDeployer(
                new ExecutorDeployer(), endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

        }
    }

    private void addDeployers(ConfigurationContext configurationContext) {
        AxisConfiguration axisConfig = configurationContext.getAxisConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        String carbonRepoPath = configurationContext.getAxisConfiguration().getRepository().getFile();


        String mediatorsPath = carbonRepoPath + File.separator + "mediators";
        String extensionsPath = carbonRepoPath + File.separator + "extensions";
        ExtensionDeployer deployer = new ExtensionDeployer();
        deploymentEngine.addDeployer(deployer, mediatorsPath, "xar");
        deploymentEngine.addDeployer(deployer, extensionsPath, "xar");
        deploymentEngine.addDeployer(deployer, mediatorsPath, "jar");
        deploymentEngine.addDeployer(deployer, extensionsPath, "jar");
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig         AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String templatesDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.TEMPLATES_DIR;
            deploymentEngine.removeDeployer(
                    templatesDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws AxisFault {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String templateDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.TEMPLATES_DIR;

        for (TemplateMediator seqTempl : synCfg.getSequenceTemplates().values()) {
            if (seqTempl.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        templateDirPath + File.separator + seqTempl.getFileName());
            }
        }

        for (Template epTempl : synCfg.getEndpointTemplates().values()) {
            if (epTempl.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        templateDirPath + File.separator + epTempl.getFileName());
            }
        }
        deploymentEngine.addDeployer(new TemplateDeployer(),
                templateDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
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.