Examples of ProvisioningException


Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

    private static IMetadataRepository getMetadataRepository(URI location) throws ProvisioningException {
        IMetadataRepositoryManager metadataRepositoryManager = ServiceHolder.getMetadataRepositoryManager();
        try {
            return metadataRepositoryManager.loadRepository(location, null);
        } catch (ProvisionException e) {
            throw new ProvisioningException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        ProvisioningPlan plan;
        IPlanner planner;
        IProfile currentProfile;
        IProfile snapshot = ProvisioningUtils.getProfile(IProfileRegistry.SELF, timestamp);
        if (snapshot == null) {
            throw new ProvisioningException("Invalid Profile Configuration");
        }

        planner = ServiceHolder.getPlanner();
        currentProfile = ProvisioningUtils.getProfile();
        plan = planner.getDiffPlan(currentProfile, snapshot, new NullProgressMonitor());
        if (plan == null) {
            throw new ProvisioningException("Failed to generate the Provisioning Plan");
        }

        return generateResolutionResult(plan.getProfileChangeRequest(), plan, getInitialStatus());
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

                    applyConfiguration);
            if (status.getSeverity() == IStatus.ERROR) {
                ResolutionResult rs = new ResolutionResult();
                rs.addSummaryStatus(status);
                String summaryReport = rs.getSummaryReport();
                throw new ProvisioningException(summaryReport);
            }
        } else {
            throw new ProvisioningException(resolutionResult.getSummaryReport());
        }
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

            // Applying configuration without restarting the server. But still there are fixes to be done
            try {
                Configurator configurator = ServiceHolder.getConfigurator();
                configurator.applyConfiguration();
            } catch (Exception e) {
                throw new ProvisioningException(e.getMessage(), e);
            }
        }
        return status;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

    public final static String ID = "org.wso2.carbon.component.mgt.core";

    public static IMetadataRepositoryManager getMetadataRepositoryManager() throws ProvisioningException {
        if (metadataRepositoryManager == null) {
            throw new ProvisioningException("No MetadataRepositoryManager Service is found");
        }
        return metadataRepositoryManager;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        return metadataRepositoryManager;
    }

    public static IArtifactRepositoryManager getArtifactRepositoryManager() throws ProvisioningException {
        if (artifactRepositoryManager == null) {
            throw new ProvisioningException("No ArtifactRepositoryManager Service is found");
        }
        return artifactRepositoryManager;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        return artifactRepositoryManager;
    }

    public static IProfileRegistry getProfileRegistry() throws ProvisioningException {
        if (profileRegistry == null) {
            throw new ProvisioningException("No ProfileRegistry Service is found");
        }
        return profileRegistry;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        return profileRegistry;
    }

    public static IPlanner getPlanner() throws ProvisioningException {
        if (planner == null) {
            throw new ProvisioningException("No IPlanner Service is found");
        }
        return planner;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        return planner;
    }

    public static IEngine getP2Engine() throws ProvisioningException {
        if (p2Engine == null) {
            throw new ProvisioningException("No IEngine Service is found");
        }
        return p2Engine;
    }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ProvisioningException

        return p2Engine;
    }

    public static Configurator getConfigurator() throws ProvisioningException {
        if (p2Configurator == null) {
            throw new ProvisioningException("No Configurator Service is found");
        }
        return p2Configurator;
    }
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.