org.rhq.plugins.postgres.util
Class PostgresqlConfFile
java.lang.Object
org.rhq.plugins.postgres.util.PostgresqlConfFile
public class PostgresqlConfFile
- extends Object
Represents a PostgreSQL configuration file (i.e. postgresql.conf) - provides methods for reading and updating
configuration parameters.
- Author:
- Greg Hinkle, Ian Springer
PostgresqlConfFile
public PostgresqlConfFile(File configurationFile)
throws IOException
- Throws:
IOException
getProperty
@Nullable
public String getProperty(String paramName)
getPropertyList
@NotNull
public List<String> getPropertyList(String propertyName)
stripQuotes
@NotNull
public static String stripQuotes(@NotNull
String value)
getPort
@Nullable
public String getPort()
setProperties
public void setProperties(Map<String,String> parameters)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.