DBAbstract API Documentation

ro.raducora.utils.props.properties
Class ClientTCPProperties

java.lang.Object
  |
  +--ro.raducora.utils.props.properties.ClientTCPProperties
All Implemented Interfaces:
ClientTCPProps, Props

public class ClientTCPProperties
extends java.lang.Object
implements ClientTCPProps

Author:
Radu Coravu

Constructor Summary
ClientTCPProperties()
          Constructor.
ClientTCPProperties(java.lang.String filename)
          Constructor.
 
Method Summary
 java.lang.String getServerIP(java.lang.String dbname)
          Get Server IP.
 int getServerPORT(java.lang.String dbname)
          Get Server PORT.
 void reload()
          Reload from file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTCPProperties

public ClientTCPProperties()
                    throws java.io.IOException
Constructor. Default properties filename path "./conf/ClientTCP.properties"


ClientTCPProperties

public ClientTCPProperties(java.lang.String filename)
                    throws java.io.IOException
Constructor.

Parameters:
filename - properties filename(absolute path)
Method Detail

getServerIP

public java.lang.String getServerIP(java.lang.String dbname)
Get Server IP.

Specified by:
getServerIP in interface ClientTCPProps
Parameters:
dbname - Key to search
Returns:
the Server IP or hostname(without port) to connect to

getServerPORT

public int getServerPORT(java.lang.String dbname)
Get Server PORT.

Specified by:
getServerPORT in interface ClientTCPProps
Parameters:
dbname - Key to search
Returns:
the Server PORT to connect to

reload

public void reload()
            throws java.io.IOException
Reload from file.

Specified by:
reload in interface Props
java.io.IOException

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.