public class ConfigAdmin
extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
| Constructor and Description |
|---|
ConfigAdmin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(String name)
Load the configuration from the given file
|
boolean |
addExistingConfiguration(String name)
Add an existing configuration to the ESB configuration management system
|
boolean |
create(String name,
String description)
Create a new synapse configuration in the specified path.
|
boolean |
deleteConfiguration(String name)
Delete a specific configuration identified by the name
|
String |
getConfiguration()
Get the current Synapse configuration serialized as an string
|
ConfigurationInformation[] |
getConfigurationList()
Get the list of configurations available
|
boolean |
saveConfigurationToDisk() |
boolean |
updateConfiguration(org.apache.axiom.om.OMElement configElement)
Update the active configuration with the new configuration
|
ValidationError[] |
validateConfiguration(org.apache.axiom.om.OMElement configElement) |
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfigurationgetAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic String getConfiguration() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - if an error occurspublic ConfigurationInformation[] getConfigurationList() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - if an error occurspublic boolean deleteConfiguration(String name) throws org.apache.axis2.AxisFault
name - name of the configurationorg.apache.axis2.AxisFault - if an error occurspublic boolean updateConfiguration(org.apache.axiom.om.OMElement configElement)
throws org.apache.axis2.AxisFault
configElement - a SOAPElement for the configurationorg.apache.axis2.AxisFault - if an error occurspublic ValidationError[] validateConfiguration(org.apache.axiom.om.OMElement configElement)
public boolean create(String name, String description) throws org.apache.axis2.AxisFault
name - name of the configuration to be removeddescription - description for the configurationorg.apache.axis2.AxisFault - if an error occurspublic boolean addExistingConfiguration(String name) throws org.apache.axis2.AxisFault
name - name of the configurationorg.apache.axis2.AxisFault - if an error occurspublic boolean activate(String name) throws org.apache.axis2.AxisFault
name - name of configurationorg.apache.axis2.AxisFault - if an error occurspublic boolean saveConfigurationToDisk()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultCopyright © 2019 WSO2. All rights reserved.