public class CGAgentAdminClient extends Object
CGAgentAdminClient
provides the admin client for CSGAgent.Constructor and Description |
---|
CGAgentAdminClient(String cookie,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configCtx,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
void |
addCGServer(org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean csgServer)
Add a CSG server bean
|
org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean |
getCGServer(String serverName)
Get the CSG server bean given the server name
|
org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean[] |
getCGServerList()
Get the available list of csg servers
|
org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGProxyToolsURLs |
getPublishedProxyToolsURLs(String serviceName) |
String |
getPublishedServer(String serviceName)
Get the server that this service has published
|
String |
getServiceStatus(String serviceName)
Is the given service already published
|
boolean |
isHasPublishedServices(String serverName)
Determines whether at least one service has been published to specified CSG server.
|
void |
publish(String serviceName,
String serverName,
boolean isAutoMatic)
Publish the service
|
void |
removeCGServer(String serverName)
Remove this csg server instance
|
void |
setServiceStatus(String serviceName,
String status) |
void |
unPublish(String serviceName,
String serverName)
Un publish the service
|
void |
updateCGServer(org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean bean)
Update an already existing csg server
|
public void publish(String serviceName, String serverName, boolean isAutoMatic) throws org.apache.axis2.AxisFault
serviceName
- name of the service to publishserverName
- name of the server from which to unpublishedisAutoMatic
- the mode of publishingorg.apache.axis2.AxisFault
- in case of an errorpublic void unPublish(String serviceName, String serverName) throws org.apache.axis2.AxisFault
serviceName
- name of the service to unpublishedserverName
- name of the server from which to unpublishedorg.apache.axis2.AxisFault
- in case of an errorpublic void addCGServer(org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean csgServer) throws org.apache.axis2.AxisFault
csgServer
- the csg server bean with server informationorg.apache.axis2.AxisFault
- throws in case of an errorpublic org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean[] getCGServerList() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- throws in case of an errorpublic void removeCGServer(String serverName) throws org.apache.axis2.AxisFault
serverName
- the unique csg server name to deleteorg.apache.axis2.AxisFault
- throws in case of an errorpublic org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean getCGServer(String serverName) throws org.apache.axis2.AxisFault
serverName
- the csg server nameorg.apache.axis2.AxisFault
- throws in case of an errorpublic void updateCGServer(org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGServerBean bean) throws org.apache.axis2.AxisFault
bean
- the new csg server informationorg.apache.axis2.AxisFault
- throws in case of an errorpublic String getServiceStatus(String serviceName) throws org.apache.axis2.AxisFault
serviceName
- serviceorg.apache.axis2.AxisFault
- throws in case of an errorpublic void setServiceStatus(String serviceName, String status) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public String getPublishedServer(String serviceName) throws org.apache.axis2.AxisFault
serviceName
- the serviceorg.apache.axis2.AxisFault
- throws in case of an errorpublic org.wso2.carbon.cloud.gateway.agent.stub.types.carbon.CGProxyToolsURLs getPublishedProxyToolsURLs(String serviceName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public boolean isHasPublishedServices(String serverName) throws org.apache.axis2.AxisFault
serverName
- Name of the CSG severorg.apache.axis2.AxisFault
- in case of an errorCopyright © 2019 WSO2. All rights reserved.