Class RegistryPersistenceManager

java.lang.Object
org.wso2.carbon.bam.service.data.publisher.conf.RegistryPersistenceManager

public class RegistryPersistenceManager extends Object
  • Field Details

  • 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

      public EventingConfigData load()
      Loads configuration from Registry.
    • fillEventingConfigData

      public EventConfigNStreamDef fillEventingConfigData(EventingConfigData eventingConfigData)
    • 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

      public EventingConfigData getEventingConfigData()
    • getAnaEventingConfigData

      public AnalyzingConfigData 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

      public RESTAPIConfigData getRestAPIConfigData()
      Get the rest api config data
      Returns:
      RESTAPIConfigData containing the rest api config data