org.rhq.plugins.postgres.util
Class PostgresqlConfFile

java.lang.Object
  extended by 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

Constructor Summary
PostgresqlConfFile(File configurationFile)
           
 
Method Summary
 String getPort()
           
 String getProperty(String paramName)
           
 List<String> getPropertyList(String propertyName)
           
 void setProperties(Map<String,String> parameters)
           
static String stripQuotes(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostgresqlConfFile

public PostgresqlConfFile(File configurationFile)
                   throws IOException
Throws:
IOException
Method Detail

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.