Class CGAdminService


  • public class CGAdminService
    extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
    The class CGAdminService service provides the operations for deploying the proxies for out sliders. These proxies are the actual proxies that represent the internal
    • Field Summary

      • Fields inherited from class org.wso2.carbon.core.AbstractAdmin

        axisConfig, configurationContext
    • Constructor Summary

      Constructors 
      Constructor Description
      CGAdminService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String composeServiceResourcesPath​(String serviceName)
      Constructs the registry path to persist a wsdl document ( - belonging to service published on CG server)
      void deployProxy​(org.wso2.carbon.cloud.gateway.common.CGServiceMetaDataBean metaData)
      Deploy the proxy service
      org.wso2.carbon.cloud.gateway.common.CGProxyToolsURLs getPublishedProxyToolsURLs​(String serviceName, String domainName)  
      org.wso2.carbon.cloud.gateway.common.CGThriftServerBean getThriftServerConnectionBean()
      Returns the thrift server connection param
      void unDeployProxy​(String serviceName)
      Un deploy the proxy service
      void updateProxy​(String serviceName, int eventType)
      Update the public proxy based on the new event of the back end service
      • Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin

        getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
      • Methods inherited from class org.wso2.carbon.core.AbstractAdmin

        getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
    • Constructor Detail

      • CGAdminService

        public CGAdminService()
    • Method Detail

      • deployProxy

        public void deployProxy​(org.wso2.carbon.cloud.gateway.common.CGServiceMetaDataBean metaData)
                         throws org.wso2.carbon.cloud.gateway.common.CGException
        Deploy the proxy service
        Parameters:
        metaData - meta data associated with this proxy
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException - throws in case of an error
      • unDeployProxy

        public void unDeployProxy​(String serviceName)
                           throws org.wso2.carbon.cloud.gateway.common.CGException
        Un deploy the proxy service
        Parameters:
        serviceName - the name of the proxy to un deploy
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException - throws in case of an error
      • getThriftServerConnectionBean

        public org.wso2.carbon.cloud.gateway.common.CGThriftServerBean getThriftServerConnectionBean()
                                                                                              throws org.wso2.carbon.cloud.gateway.common.CGException
        Returns the thrift server connection param
        Returns:
        the thriftServer connection url
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException - In case the server is not running
      • updateProxy

        public void updateProxy​(String serviceName,
                                int eventType)
                         throws org.wso2.carbon.cloud.gateway.common.CGException
        Update the public proxy based on the new event of the back end service
        Parameters:
        serviceName - service
        eventType - the new event type
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException - throws in case of an error
      • getPublishedProxyToolsURLs

        public org.wso2.carbon.cloud.gateway.common.CGProxyToolsURLs getPublishedProxyToolsURLs​(String serviceName,
                                                                                                String domainName)
                                                                                         throws org.wso2.carbon.cloud.gateway.common.CGException
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException
      • composeServiceResourcesPath

        public String composeServiceResourcesPath​(String serviceName)
        Constructs the registry path to persist a wsdl document ( - belonging to service published on CG server)
        Parameters:
        serviceName - Name of the service
        Returns:
        Designated path in registry