Interface LoggingConfig

All Known Implementing Classes:
LoggingConfigImpl

@Contract public interface LoggingConfig
Interface for Logging Commands
Author:
Naman Mehta
  • Method Details

    • setLoggingProperty

      String setLoggingProperty(String propertyName, String propertyValue) throws IOException
      Set propertyName to the propertyValue.

      The logManager readConfiguration is not called in this method.

      Throws:
      IOException
    • setLoggingProperty

      String setLoggingProperty(String propertyName, String propertyValue, String targetServer) throws IOException
      Set propertyName to the propertyValue.

      The logManager readConfiguration is not called in this method.

      Throws:
      IOException
    • updateLoggingProperties

      Map<String,String> updateLoggingProperties(Map<String,String> properties) throws IOException
      Update the properties to new values. properties is a Map of names of properties and their cooresponding value. If the property does not exist then it is added to the logging.properties file. The readConfiguration method is called on the logManager after updating the properties.
      Throws:
      IOException
    • updateLoggingProperties

      Map<String,String> updateLoggingProperties(Map<String,String> properties, String targetServer) throws IOException
      Update the properties to new values for given target. properties is a Map of names of properties and their coresponding value. If the property does not exist then it is added to the logging.properties file.
      Parameters:
      properties - Map of the name and value of property to add or update
      Throws:
      IOException
    • getLoggingProperties

      Map<String,String> getLoggingProperties(String targetServer) throws IOException
      Returns:
      the properties and corresponding values in the logging.properties file for given target server.
      Throws:
      IOException
    • getLoggingProperties

      Map<String,String> getLoggingProperties() throws IOException
      Returns:
      the properties and corresponding values in the logging.properties file.
      Throws:
      IOException
    • createZipFile

      String createZipFile(String sourceDir) throws IOException
      Creates zip file for given sourceDirectory
      Throws:
      IOException
    • deleteLoggingProperties

      Map<String,String> deleteLoggingProperties(Collection<String> properties) throws IOException
      Delete the properties from logging.properties file.
      Throws:
      IOException
    • deleteLoggingProperties

      Map<String,String> deleteLoggingProperties(Collection<String> properties, String target) throws IOException
      Delete the properties from logging.properties file.
      Throws:
      IOException