@Service @Contract public class LoggingConfigImpl extends Object implements LoggingConfig, org.glassfish.hk2.api.PostConstruct
| Constructor and Description |
|---|
LoggingConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
createZipFile(String sourceDir) |
String |
createZipFile(String sourceDir,
String zipFileName) |
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) |
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic String setLoggingProperty(String propertyName, String propertyValue) throws IOException
setLoggingProperty in interface LoggingConfigpropertyName - Name of the property to setpropertyValue - Value to setIOExceptionpublic String setLoggingProperty(String propertyName, String propertyValue, String targetConfigName) throws IOException
setLoggingProperty in interface LoggingConfigpropertyName - Name of the property to setpropertyValue - Value to setIOExceptionpublic Map<String,String> updateLoggingProperties(Map<String,String> properties) throws IOException
updateLoggingProperties in interface LoggingConfigIOExceptionpublic Map<String,String> updateLoggingProperties(Map<String,String> properties, String targetConfigName) throws IOException
updateLoggingProperties in interface LoggingConfigIOExceptionpublic Map<String,String> getLoggingProperties(String targetConfigName) throws IOException
getLoggingProperties in interface LoggingConfigIOExceptionpublic Map<String,String> getLoggingProperties() throws IOException
getLoggingProperties in interface LoggingConfigIOExceptionpublic void deleteLoggingProperties(Map<String,String> properties) throws IOException
deleteLoggingProperties in interface LoggingConfigIOExceptionpublic void deleteLoggingProperties(Map<String,String> properties, String targetConfigName) throws IOException
deleteLoggingProperties in interface LoggingConfigIOExceptionpublic String createZipFile(String sourceDir) throws IOException
createZipFile in interface LoggingConfigIOExceptionpublic String createZipFile(String sourceDir, String zipFileName) throws IOException
IOExceptionpublic String getLoggingFileDetails() throws IOException
IOExceptionpublic String getLoggingFileDetails(String targetConfigName) throws IOException
IOExceptionpublic Map<String,String> getDefaultLoggingProperties() throws IOException
IOExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.