DBAbstract API Documentation

ro.raducora.utils.props.xml
Class ClientTCPXMLProperties

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

public class ClientTCPXMLProperties
extends java.lang.Object
implements ClientTCPProps

Author:
Radu Coravu

Constructor Summary
ClientTCPXMLProperties()
          Default Constructor takes as default properties filename path ".
ClientTCPXMLProperties(java.lang.String filename)
           
 
Method Summary
 java.lang.String getServerIP(java.lang.String dbname)
          Gets Server IP for the specific key
 int getServerPORT(java.lang.String dbname)
          Gets Server PORT for the specific key
 void reload()
          Reloads the Properties from properties Source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTCPXMLProperties

public ClientTCPXMLProperties()
                       throws javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException,
                              java.io.IOException
Default Constructor takes as default properties filename path "./conf/ClientTCP.xml"

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

ClientTCPXMLProperties

public ClientTCPXMLProperties(java.lang.String filename)
                       throws javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException,
                              java.io.IOException
Parameters:
filename - the properties filename
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
Method Detail

getServerIP

public java.lang.String getServerIP(java.lang.String dbname)
Description copied from interface: ClientTCPProps
Gets Server IP for the specific key

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

getServerPORT

public int getServerPORT(java.lang.String dbname)
Description copied from interface: ClientTCPProps
Gets Server PORT for the specific key

Specified by:
getServerPORT in interface ClientTCPProps
Parameters:
dbname - Key to search
Returns:
the Server PORT to connect to
See Also:
ClientTCPProps.getServerPORT(java.lang.String)

reload

public void reload()
            throws javax.xml.parsers.ParserConfigurationException,
                   org.xml.sax.SAXException,
                   java.io.IOException
Description copied from interface: Props
Reloads the Properties from properties Source

Specified by:
reload in interface Props
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
See Also:
Props.reload()

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.