Examples of CSGServicePublisher


Examples of org.wso2.carbon.cloud.csg.agent.CSGServicePublisher

     * @param serviceName the service to deploy
     * @param serverName  the serverName to publish
     * @throws CSGException throws in case of an error
     */
    public void publishService(String serviceName, String serverName) throws CSGException {
        CSGServicePublisher servicePublisher = new CSGAgentConfigLayer().getCSGServicePublisher();
        if (servicePublisher.publish(serviceName, serverName)) {
            log.info("The service '" + serviceName + "', published sucessfully");
        } else {
            handleException("Cloud not publish the service");
        }
    }
View Full Code Here

Examples of org.wso2.carbon.cloud.csg.agent.CSGServicePublisher

     * @param serviceName the service to un-deploy
     * @param serverName  the server name to publish
     * @throws CSGException throws in case of an error
     */
    public void unPublishService(String serviceName, String serverName) throws CSGException {
        CSGServicePublisher servicePublisher = new CSGAgentConfigLayer().getCSGServicePublisher();
        if (servicePublisher.unPublish(serviceName, serverName)) {
            log.info("The service '" + serviceName + "', un-published sucessfully");
        } else {
            handleException("Cloud not un-publish the service");
        }
    }
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.