Examples of DeploymentSynchronizerException


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

            if (synchronizer != null) {
                synchronizer.start();
            } else {
                String msg = "Unable to create a deployment synchronizer instance";
                log.warn(msg);
                throw new DeploymentSynchronizerException(msg);
            }
        } catch (RegistryException e) {
            handleException("Error while enabling deployment synchronizer", e);
        }
    }
View Full Code Here

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

        return null;
    }

    private void handleException(String msg, Exception e) throws DeploymentSynchronizerException {
        log.error(msg, e);
        throw new DeploymentSynchronizerException(msg, e);
    }
View Full Code Here

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

    public void checkout(String filePath) throws DeploymentSynchronizerException {
        DeploymentSynchronizer synchronizer = getSynchronizer(filePath);
        try {
            synchronizer.checkout();
        } catch (SynchronizationException e) {
            throw new DeploymentSynchronizerException("Error while invoking checkout on the " +
                    "repository at: " + filePath, e);
        }
    }
View Full Code Here

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

    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

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

    private DeploymentSynchronizer getSynchronizer(String filePath)
            throws DeploymentSynchronizerException {

        DeploymentSynchronizer synchronizer = syncManager.getSynchronizer(filePath);
        if (synchronizer == null) {
            throw new DeploymentSynchronizerException("A repository synchronizer has not been " +
                    "engaged for the file path: " + filePath);
        }
        return synchronizer;
    }
View Full Code Here

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

            currentContext.setUserRealm(registry.getUserRealm());
            currentContext.setUsername(registry.getUserName());

            return eventingService.subscribe(subscription);
        } catch (InvalidMessageException e) {
            throw new DeploymentSynchronizerException("Error while subscribing for registry " +
                    "events on collection: " + absolutePath, e);
        } finally {
            SuperTenantCarbonContext.endTenantFlow();
        }
    }
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.