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 java.lang.Object
implements LoggingConfig, org.jvnet.hk2.component.PostConstruct

Implementation of Logging Commands

Author:
Naman Mehta

Constructor Summary
LoggingConfigImpl()
           
 
Method Summary
 boolean copyLoggingPropertiesFile(java.io.File targetDir)
           
 java.lang.String createZipFile(java.lang.String sourceDir)
           
 void deleteLoggingProperties(java.util.Map<java.lang.String,java.lang.String> properties)
           
 void deleteLoggingProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.lang.String targetConfigName)
           
 java.util.Map<java.lang.String,java.lang.String> getDefaultLoggingProperties()
           
 java.lang.String getLoggingFileDetails()
           
 java.lang.String getLoggingFileDetails(java.lang.String targetConfigName)
           
 java.util.Map<java.lang.String,java.lang.String> getLoggingProperties()
           
 java.util.Map<java.lang.String,java.lang.String> getLoggingProperties(java.lang.String targetConfigName)
           
 void postConstruct()
          Constructor
 java.lang.String setLoggingProperty(java.lang.String propertyName, java.lang.String propertyValue)
          setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added.
 java.lang.String setLoggingProperty(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String targetConfigName)
          setLoggingProperty() sets an existing propertyName to be propertyValue if the property doesn't exist the property will be added.
 void setupConfigDir(java.io.File file, java.io.File installDir)
           
 java.util.Map<java.lang.String,java.lang.String> updateLoggingProperties(java.util.Map<java.lang.String,java.lang.String> properties)
           
 java.util.Map<java.lang.String,java.lang.String> updateLoggingProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.lang.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(java.io.File file,
                           java.io.File installDir)

copyLoggingPropertiesFile

public boolean copyLoggingPropertiesFile(java.io.File targetDir)
                                  throws java.io.IOException
Throws:
java.io.IOException

setLoggingProperty

public java.lang.String setLoggingProperty(java.lang.String propertyName,
                                           java.lang.String propertyValue)
                                    throws java.io.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:
java.io.IOException

setLoggingProperty

public java.lang.String setLoggingProperty(java.lang.String propertyName,
                                           java.lang.String propertyValue,
                                           java.lang.String targetConfigName)
                                    throws java.io.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:
java.io.IOException

updateLoggingProperties

public java.util.Map<java.lang.String,java.lang.String> updateLoggingProperties(java.util.Map<java.lang.String,java.lang.String> properties)
                                                                         throws java.io.IOException
Specified by:
updateLoggingProperties in interface LoggingConfig
Throws:
java.io.IOException

updateLoggingProperties

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

getLoggingProperties

public java.util.Map<java.lang.String,java.lang.String> getLoggingProperties(java.lang.String targetConfigName)
                                                                      throws java.io.IOException
Specified by:
getLoggingProperties in interface LoggingConfig
Throws:
java.io.IOException

getLoggingProperties

public java.util.Map<java.lang.String,java.lang.String> getLoggingProperties()
                                                                      throws java.io.IOException
Specified by:
getLoggingProperties in interface LoggingConfig
Throws:
java.io.IOException

deleteLoggingProperties

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

deleteLoggingProperties

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

createZipFile

public java.lang.String createZipFile(java.lang.String sourceDir)
                               throws java.io.IOException
Specified by:
createZipFile in interface LoggingConfig
Throws:
java.io.IOException

getLoggingFileDetails

public java.lang.String getLoggingFileDetails()
                                       throws java.io.IOException
Throws:
java.io.IOException

getLoggingFileDetails

public java.lang.String getLoggingFileDetails(java.lang.String targetConfigName)
                                       throws java.io.IOException
Throws:
java.io.IOException

getDefaultLoggingProperties

public java.util.Map<java.lang.String,java.lang.String> getDefaultLoggingProperties()
                                                                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.