Package org.wso2.carbon.deployment.synchronizer

Examples of org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.commit()


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

    public boolean synchronizerEnabledForCarbonRepository() {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        return DeploymentSynchronizationManager.getInstance().getSynchronizer(filePath) != null;
View Full Code Here


    }

    public void commit(String filePath) throws DeploymentSynchronizerException {
        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        try {
            synchronizer.commit();
        } catch (SynchronizationException e) {
            throw new DeploymentSynchronizerException("Error while invoking commit on the " +
                    "repository at: " + filePath, e);
        }
    }
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.