Examples of testContentSourceConnection()


Examples of org.rhq.enterprise.server.content.ContentSourceManagerLocal.testContentSourceConnection()

    public String test() {
        ContentSourceManagerLocal manager = LookupUtil.getContentSourceManager();

        try {
            manager.testContentSourceConnection(this.contentSource.getId());
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO,
                    "Test passed - the remote repository for [" + this.contentSource.getName() + "] is available.");
        } catch (Exception e) {
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_WARN,
                    "Test failed - failed to connect to the remote repository for [" + this.contentSource.getName()
View Full Code Here

Examples of org.rhq.enterprise.server.content.ContentSourceManagerLocal.testContentSourceConnection()

    public String sync() {
        // Test the content source connection before proceeding.
        ContentSourceManagerLocal contentSourceManager = LookupUtil.getContentSourceManager();
        try {
            contentSourceManager.testContentSourceConnection(this.contentSource.getId());
        } catch (Exception e) {
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_ERROR,
                    "Failed to connect to the remote repository for [" + this.contentSource.getName()
                        + "] - check the configuration and make sure the remote repository is up and reachable. Details: "
                        + ThrowableUtil.getAllMessages(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.