public class RegistryPersistenceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_STRING |
| Constructor and Description |
|---|
RegistryPersistenceManager() |
| Modifier and Type | Method and Description |
|---|---|
EventConfigNStreamDef |
fillEventingConfigData(EventingConfigData eventingConfigData) |
Properties |
getAllConfigProperties(String registryPath)
Fetches all properties for any registry resource
|
AnalyzingConfigData |
getAnaEventingConfigData()
get analyzer config data
|
String |
getConfigurationProperty(String registryPath,
String propertyName)
Fetches the value of the property with propertyName from registry.
|
EventingConfigData |
getEventingConfigData() |
RESTAPIConfigData |
getRestAPIConfigData()
Get the rest api config data
|
EventingConfigData |
load()
Loads configuration from Registry.
|
static void |
setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam) |
void |
update(AnalyzingConfigData analyzingConfigData)
Updates the Registry with given analytic node config data.
|
void |
update(EventingConfigData eventingConfigData)
Updates the Registry with given config data.
|
void |
update(RESTAPIConfigData restAPIConfigData)
Updates the Registry with given rest api config data.
|
void |
updateAllProperties(Properties properties,
String registryPath)
Updates all properties of a resource
|
void |
updateConfigurationProperty(String propertyName,
Object value,
String registryPath)
Updates configuration property to a new value.
|
void |
updateConfigurationProperty(String propertyName,
String value)
Updates configuration property to a new value.
|
public static final String EMPTY_STRING
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam)
public void updateConfigurationProperty(String propertyName, String value) throws org.wso2.carbon.registry.core.exceptions.RegistryException
propertyName - Name of the property to be updated.value - New value of the propertyorg.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic EventingConfigData load()
public EventConfigNStreamDef fillEventingConfigData(EventingConfigData eventingConfigData)
public void updateConfigurationProperty(String propertyName, Object value, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
propertyName - Name of the property to be updated.value - New value of the propertyorg.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic void updateAllProperties(Properties properties, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
properties - registryPath - org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic void update(EventingConfigData eventingConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException
eventingConfigData - eventing configuration dataorg.wso2.carbon.registry.core.exceptions.RegistryException - thrown when updating the registry properties fails.public void update(AnalyzingConfigData analyzingConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException
analyzingConfigData - analyzer node configuration dataorg.wso2.carbon.registry.core.exceptions.RegistryException - thrown when updating the registry properties fails.public String getConfigurationProperty(String registryPath, String propertyName) throws org.wso2.carbon.registry.core.exceptions.RegistryException
propertyName - Name of the property to be fetched.org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic Properties getAllConfigProperties(String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException
registryPath - org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic EventingConfigData getEventingConfigData()
public AnalyzingConfigData getAnaEventingConfigData()
public void update(RESTAPIConfigData restAPIConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException
restAPIConfigData - rest api config dataorg.wso2.carbon.registry.core.exceptions.RegistryException - thrown when updating the registry properties fails.public RESTAPIConfigData getRestAPIConfigData()
Copyright © 2019 WSO2. All rights reserved.