|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin
public class ProxyServiceAdmin
The class ProxyServiceAdmin provides the administration service to configure
proxy services.
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
ProxyServiceAdmin()
|
|
| Method Summary | |
|---|---|
String |
addProxy(ProxyData pd)
|
String |
deleteProxyService(String proxyName)
Deletes a proxy service from the synapse configuration |
String |
disableStatistics(String proxyName)
Disables statistics for the specified proxy service |
String |
disableTracing(String proxyName)
Disables tracing for the specified proxy service |
String |
enableStatistics(String proxyName)
Enables statistics for the specified proxy service |
String |
enableTracing(String proxyName)
Enables tracing for the specified proxy service |
String[] |
getAvailableEndpoints()
Get the available endpoints from the SynapseConfiguration |
String[] |
getAvailableSequences()
Get the available sequences from the SynapseConfiguration |
String[] |
getAvailableTransports()
Get the available transport names from the AxisConfiguration |
String |
getEndpoint(String name)
Gets the endpoint object defined under the given name |
MetaData |
getMetaData()
Encapsulates the available transports, endpoints, and sequences into a single two dimensional array |
ProxyData |
getProxy(String proxyName)
|
String |
getSourceView(ProxyData pd)
|
String |
modifyProxy(ProxyData pd)
|
void |
persistProxyService(org.apache.synapse.core.axis2.ProxyService proxy)
|
String |
redeployProxyService(String proxyName)
Redeploying service Removes an existing one,Adds a new one |
String |
startProxyService(String proxyName)
Starts the service specified by the name |
String |
stopProxyService(String proxyName)
Stops the service specified by the name |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyServiceAdmin()
| Method Detail |
|---|
public String enableStatistics(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service name of which the statistics need to be enabled
successful on success or failed otherwise
ProxyAdminException - in case of a failure in enabling statistics
public String disableStatistics(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service of which statistics need to be disabled
successful on success or failed if unsuccessful
ProxyAdminException - in case of a failure in disabling statistics
public String enableTracing(String proxyName)
throws ProxyAdminException
proxyName - name of the the proxy service of which tracing needs to be enabled
successful on success or failed otherwise
ProxyAdminException - in case of a failure in enabling tracing
public String disableTracing(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service of which tracing needs to be disabled
ProxyAdminException - in case of a failure in disabling tracing
public String deleteProxyService(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service which needs to be deleted
successful on success or failed otherwise
ProxyAdminException - if the proxy service name given is not existent in the
synapse configuration
public String[] getAvailableTransports()
throws ProxyAdminException
ProxyAdminException
public String[] getAvailableSequences()
throws ProxyAdminException
ProxyAdminException - if there is an error
public String[] getAvailableEndpoints()
throws ProxyAdminException
ProxyAdminException - if there is an error
public String getEndpoint(String name)
throws ProxyAdminException
name - the name of the endpoint
ProxyAdminException - if the endpoint is not found for the given name
public MetaData getMetaData()
throws ProxyAdminException
ProxyAdminException
public String startProxyService(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service which needs to be started
successful on success or failed otherwise
ProxyAdminException - in case of a failure in starting the service
public String stopProxyService(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service which needs to be stoped
successful on success or failed otherwise
ProxyAdminException - in case of a failure in stopping the service
public String redeployProxyService(String proxyName)
throws ProxyAdminException
proxyName - name of the proxy service which needs to be redeployed
successful on success or failed otherwise
ProxyAdminException - in case of a failure in redeploying the service
public String getSourceView(ProxyData pd)
throws ProxyAdminException
ProxyAdminException
public ProxyData getProxy(String proxyName)
throws ProxyAdminException
ProxyAdminException
public String addProxy(ProxyData pd)
throws ProxyAdminException
ProxyAdminException
public String modifyProxy(ProxyData pd)
throws ProxyAdminException
ProxyAdminException
public void persistProxyService(org.apache.synapse.core.axis2.ProxyService proxy)
throws ProxyAdminException
ProxyAdminException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||