Class RegistryPersistenceManager
java.lang.Object
org.wso2.carbon.bam.service.data.publisher.conf.RegistryPersistenceManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfillEventingConfigData(EventingConfigData eventingConfigData) getAllConfigProperties(String registryPath) Fetches all properties for any registry resourceget analyzer config datagetConfigurationProperty(String registryPath, String propertyName) Fetches the value of the property with propertyName from registry.Get the rest api config dataload()Loads configuration from Registry.static voidsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam) voidupdate(AnalyzingConfigData analyzingConfigData) Updates the Registry with given analytic node config data.voidupdate(EventingConfigData eventingConfigData) Updates the Registry with given config data.voidupdate(RESTAPIConfigData restAPIConfigData) Updates the Registry with given rest api config data.voidupdateAllProperties(Properties properties, String registryPath) Updates all properties of a resourcevoidupdateConfigurationProperty(String propertyName, Object value, String registryPath) Updates configuration property to a new value.voidupdateConfigurationProperty(String propertyName, String value) Updates configuration property to a new value.
-
Field Details
-
EMPTY_STRING
- See Also:
-
-
Constructor Details
-
RegistryPersistenceManager
public RegistryPersistenceManager()
-
-
Method Details
-
setRegistryService
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryServiceParam) -
updateConfigurationProperty
public void updateConfigurationProperty(String propertyName, String value) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates configuration property to a new value.- Parameters:
propertyName- Name of the property to be updated.value- New value of the property- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
load
Loads configuration from Registry. -
fillEventingConfigData
-
updateConfigurationProperty
public void updateConfigurationProperty(String propertyName, Object value, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates configuration property to a new value.- Parameters:
propertyName- Name of the property to be updated.value- New value of the property- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
updateAllProperties
public void updateAllProperties(Properties properties, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates all properties of a resource- Parameters:
properties-registryPath-- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
update
public void update(EventingConfigData eventingConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates the Registry with given config data.- Parameters:
eventingConfigData- eventing configuration data- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- thrown when updating the registry properties fails.
-
update
public void update(AnalyzingConfigData analyzingConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates the Registry with given analytic node config data.- Parameters:
analyzingConfigData- analyzer node configuration data- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- thrown when updating the registry properties fails.
-
getConfigurationProperty
public String getConfigurationProperty(String registryPath, String propertyName) throws org.wso2.carbon.registry.core.exceptions.RegistryException Fetches the value of the property with propertyName from registry. Returns null if no property exists with the given name.- Parameters:
propertyName- Name of the property to be fetched.- Returns:
- Property value
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getAllConfigProperties
public Properties getAllConfigProperties(String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException Fetches all properties for any registry resource- Parameters:
registryPath-- Returns:
- properties
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getEventingConfigData
-
getAnaEventingConfigData
get analyzer config data- Returns:
- AnalyzingConfigData containing the analyzer config data
-
update
public void update(RESTAPIConfigData restAPIConfigData) throws org.wso2.carbon.registry.core.exceptions.RegistryException Updates the Registry with given rest api config data.- Parameters:
restAPIConfigData- rest api config data- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- thrown when updating the registry properties fails.
-
getRestAPIConfigData
Get the rest api config data- Returns:
- RESTAPIConfigData containing the rest api config data
-