public class CGAgentAdminService
extends org.wso2.carbon.core.AbstractAdmin
CGAgentAdminService provides the admin service to manipulate the
CGAgent remotely| Constructor and Description |
|---|
CGAgentAdminService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCGServer(org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer)
Add a new CG server and store it in registry
|
protected void |
addExposedTransports(String serviceName,
String transport) |
void |
doServiceUpdate(String serviceName,
int eventType) |
org.wso2.carbon.cloud.gateway.common.CGServerBean |
getCGServer(String csgServerName)
Get the CG server given by the name
|
org.wso2.carbon.cloud.gateway.common.CGServerBean[] |
getCGServerList()
Get the set of CSG servers
|
org.wso2.carbon.cloud.gateway.stub.types.common.CGProxyToolsURLs |
getPublishedProxyToolsURLs(String serviceName) |
String |
getPublishedServer(String serviceName)
Get the server that this service has published to
|
String |
getServiceStatus(String serviceName)
Returns the status of the service
|
boolean |
isHasPublishedServices(String csgServerName)
Determines whether at least a one service has been published to specified CSG server.
|
protected boolean |
isUTEnabled(String serviceName) |
protected org.wso2.carbon.core.transports.util.TransportSummary[] |
listTransports() |
void |
publishService(String serviceName,
String serverName,
boolean isAutomatic)
Deploy the proxy service
|
void |
removeCGServer(String csgServerName)
Remove the CSG server given by the name
|
protected void |
removeExposedTransports(String serviceName,
String transportProtocol) |
void |
rePublishService(String serviceName,
String serverName,
boolean isAutomatic) |
void |
setServiceStatus(String serviceName,
String status) |
void |
unPublishService(String serviceName,
String serverName,
boolean isCheckBackend)
Un-deploy the proxy service
|
void |
updateCGServer(org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer)
Update the CSG server and persist new information into registry
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic void publishService(String serviceName, String serverName, boolean isAutomatic) throws org.wso2.carbon.cloud.gateway.common.CGException
serviceName - the service to deployserverName - the serverName to publishisAutomatic - the mode of service publishingorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic void rePublishService(String serviceName, String serverName, boolean isAutomatic) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGExceptionpublic void unPublishService(String serviceName, String serverName, boolean isCheckBackend) throws org.wso2.carbon.cloud.gateway.common.CGException
serviceName - the service to un-deployserverName - the server name to publishisCheckBackend - check the backend availabilityorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic void addCGServer(org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer)
throws org.wso2.carbon.cloud.gateway.common.CGException
csgServer - new csg server instanceorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic org.wso2.carbon.cloud.gateway.common.CGServerBean getCGServer(String csgServerName) throws org.wso2.carbon.cloud.gateway.common.CGException
csgServerName - csg server nameorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic org.wso2.carbon.cloud.gateway.common.CGServerBean[] getCGServerList()
throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic void updateCGServer(org.wso2.carbon.cloud.gateway.common.CGServerBean csgServer)
throws org.wso2.carbon.cloud.gateway.common.CGException
csgServer - new csg server informationorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic void removeCGServer(String csgServerName) throws org.wso2.carbon.cloud.gateway.common.CGException
csgServerName - the csg server nameorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic String getServiceStatus(String serviceName) throws org.wso2.carbon.cloud.gateway.common.CGException
serviceName - service nameorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic void setServiceStatus(String serviceName, String status) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGExceptionpublic void doServiceUpdate(String serviceName, int eventType) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGExceptionpublic String getPublishedServer(String serviceName) throws org.wso2.carbon.cloud.gateway.common.CGException
serviceName - service nameorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorpublic org.wso2.carbon.cloud.gateway.stub.types.common.CGProxyToolsURLs getPublishedProxyToolsURLs(String serviceName) throws org.wso2.carbon.cloud.gateway.common.CGException
org.wso2.carbon.cloud.gateway.common.CGExceptionpublic boolean isHasPublishedServices(String csgServerName) throws org.wso2.carbon.cloud.gateway.common.CGException
csgServerName - Name of the CSG severorg.wso2.carbon.cloud.gateway.common.CGException - in case of an errorprotected void addExposedTransports(String serviceName, String transport) throws Exception
Exceptionprotected void removeExposedTransports(String serviceName, String transportProtocol) throws Exception
Exceptionprotected boolean isUTEnabled(String serviceName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultprotected org.wso2.carbon.core.transports.util.TransportSummary[] listTransports()
Copyright © 2019 WSO2. All rights reserved.