Package org.wso2.carbon.deployment.synchronizer

Examples of org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer


        layoutManager.setVerticalLayout(true);
        layoutManager.setYSpacing(20);
        layoutManager.setYSpacing(50);
        layoutManager.layoutSVG(bpel.getRootActivity());

        SVGImpl svg = new SVGImpl();
        svg.setRootActivity(bpel.getRootActivity());
       
        return(svg);
    }
View Full Code Here


            throws DeploymentSynchronizerException {

        int tenantId = MultitenantUtils.getTenantId(getConfigContext());
        try {
            CarbonRepositoryUtils.persistConfiguration(config, tenantId);
            DeploymentSynchronizer synchronizer = CarbonRepositoryUtils.
                    newCarbonRepositorySynchronizer(tenantId);
            if (synchronizer != null) {
                synchronizer.start();
            } else {
                String msg = "Unable to create a deployment synchronizer instance";
                log.warn(msg);
                throw new DeploymentSynchronizerException(msg);
            }
View Full Code Here

        } catch (RegistryException e) {
            handleException("Error while persisting the deployment synchronizer configuration", e);
        }

        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer =  DeploymentSynchronizationManager.getInstance().
                deleteSynchronizer(filePath);
        if (synchronizer != null) {
            synchronizer.stop();
        }
    }
View Full Code Here

        enableSynchronizerForCarbonRepository(config);
    }

    public long getLastCommitTime() {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer = DeploymentSynchronizationManager.getInstance().
                getSynchronizer(filePath);
        if (synchronizer != null) {
            return synchronizer.getLastCommitTime();
        }
        return -1L;
    }
View Full Code Here

        return -1L;
    }

    public long getLastCheckoutTime() {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer = DeploymentSynchronizationManager.getInstance().
                getSynchronizer(filePath);
        if (synchronizer != null) {
            return synchronizer.getLastCheckoutTime();
        }
        return -1L;
    }
View Full Code Here

        return -1L;
    }

    public void checkout() throws SynchronizationException {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer = DeploymentSynchronizationManager.getInstance().
                getSynchronizer(filePath);
        synchronizer.checkout();
    }
View Full Code Here

        synchronizer.checkout();
    }

    public void commit() throws SynchronizationException {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer = DeploymentSynchronizationManager.getInstance().
                getSynchronizer(filePath);
        synchronizer.commit();
    }
View Full Code Here

    public boolean synchronizerExists(String filePath) {
        return syncManager.getSynchronizer(filePath) != null;
    }

    public boolean isAutoCommitOn(String filePath) throws DeploymentSynchronizerException {
        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        return synchronizer.isAutoCommit();
    }
View Full Code Here

        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        return synchronizer.isAutoCommit();
    }

    public boolean isAutoCheckoutOn(String filePath) throws DeploymentSynchronizerException {
        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        return synchronizer.isAutoCheckout();
    }
View Full Code Here

        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        return synchronizer.isAutoCheckout();
    }

    public long getLastCommitTime(String filePath) throws DeploymentSynchronizerException {
        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        return synchronizer.getLastCommitTime();
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer

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.