org.rhq.plugins.postgres.util
Class PostgresqlConfFile

java.lang.Object
  extended by org.rhq.plugins.postgres.util.PostgresqlConfFile

public class PostgresqlConfFile
extends java.lang.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(java.io.File configurationFile)
           
 
Method Summary
 java.lang.String getPort()
           
 java.lang.String getProperty(java.lang.String paramName)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.String> parameters)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostgresqlConfFile

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

getProperty

@Nullable
public java.lang.String getProperty(java.lang.String paramName)

getPort

@Nullable
public java.lang.String getPort()

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> parameters)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.