com.sun.common.util.logging
Class LoggingConfigImpl

java.lang.Object
  extended by com.sun.common.util.logging.LoggingConfigImpl
All Implemented Interfaces:
LoggingConfig, org.jvnet.hk2.component.PostConstruct

@Service
@Contract
public class LoggingConfigImpl
extends Object
implements LoggingConfig, org.jvnet.hk2.component.PostConstruct

Implementation of Logging Commands

Author:
Naman Mehta

Constructor Summary
LoggingConfigImpl()
           
 
Method Summary
 boolean copyLoggingPropertiesFile(File targetDir)
           
 String createZipFile(String sourceDir)
           
 void deleteLoggingProperties(Map<String,String> properties)
           
 void deleteLoggingProperties(Map<String,String> properties, String targetConfigName)
           
 Map<String,String> getDefaultLoggingProperties()
           
 String getLoggingFileDetails()
           
 String getLoggingFileDetails(String targetConfigName)
           
 Map<String,String> getLoggingProperties()
           
 Map<String,String> getLoggingProperties(String targetConfigName)
           
 void postConstruct()
          Constructor
 String setLoggingProperty(String propertyName, String propertyValue)
          setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added.
 String setLoggingProperty(String propertyName, String propertyValue, String targetConfigName)
          setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added.
 void setupConfigDir(File file, File installDir)
           
 Map<String,String> updateLoggingProperties(Map<String,String> properties)
           
 Map<String,String> updateLoggingProperties(Map<String,String> properties, String targetConfigName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingConfigImpl

public LoggingConfigImpl()
Method Detail

postConstruct

public void postConstruct()
Constructor

Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

setupConfigDir

public void setupConfigDir(File file,
                           File installDir)

copyLoggingPropertiesFile

public boolean copyLoggingPropertiesFile(File targetDir)
                                  throws IOException
Throws:
IOException

setLoggingProperty

public String setLoggingProperty(String propertyName,
                                 String propertyValue)
                          throws IOException
setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added. The logManager readConfiguration is not called in this method.

Specified by:
setLoggingProperty in interface LoggingConfig
Parameters:
propertyName - Name of the property to set
propertyValue - Value to set
Throws:
IOException

setLoggingProperty

public String setLoggingProperty(String propertyName,
                                 String propertyValue,
                                 String targetConfigName)
                          throws IOException
setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added. The logManager readConfiguration is not called in this method.

Specified by:
setLoggingProperty in interface LoggingConfig
Parameters:
propertyName - Name of the property to set
propertyValue - Value to set
Throws:
IOException

updateLoggingProperties

public Map<String,String> updateLoggingProperties(Map<String,String> properties)
                                           throws IOException
Specified by:
updateLoggingProperties in interface LoggingConfig
Throws:
IOException

updateLoggingProperties

public Map<String,String> updateLoggingProperties(Map<String,String> properties,
                                                  String targetConfigName)
                                           throws IOException
Specified by:
updateLoggingProperties in interface LoggingConfig
Throws:
IOException

getLoggingProperties

public Map<String,String> getLoggingProperties(String targetConfigName)
                                        throws IOException
Specified by:
getLoggingProperties in interface LoggingConfig
Throws:
IOException

getLoggingProperties

public Map<String,String> getLoggingProperties()
                                        throws IOException
Specified by:
getLoggingProperties in interface LoggingConfig
Throws:
IOException

deleteLoggingProperties

public void deleteLoggingProperties(Map<String,String> properties)
                             throws IOException
Specified by:
deleteLoggingProperties in interface LoggingConfig
Throws:
IOException

deleteLoggingProperties

public void deleteLoggingProperties(Map<String,String> properties,
                                    String targetConfigName)
                             throws IOException
Specified by:
deleteLoggingProperties in interface LoggingConfig
Throws:
IOException

createZipFile

public String createZipFile(String sourceDir)
                     throws IOException
Specified by:
createZipFile in interface LoggingConfig
Throws:
IOException

getLoggingFileDetails

public String getLoggingFileDetails()
                             throws IOException
Throws:
IOException

getLoggingFileDetails

public String getLoggingFileDetails(String targetConfigName)
                             throws IOException
Throws:
IOException

getDefaultLoggingProperties

public Map<String,String> getDefaultLoggingProperties()
                                               throws IOException
Throws:
IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.