com.ibm.di.util
Class CSServersInfo

java.lang.Object
  extended by com.ibm.di.util.CSServersInfo
All Implemented Interfaces:
ErrorHandler

public class CSServersInfo
extends Object
implements ErrorHandler

A class reading and writing Entries in XML format.


Field Summary
 NodeList children
           
 int curindex
           
 DocumentBuilder db
           
 String entrytag
           
 Element toplevel
           
 Element toplevelInput
           
 boolean useCData
           
 String valuetag
           
 
Constructor Summary
CSServersInfo()
           
 
Method Summary
 void addNode(String hostName, String portNumber, String database)
           
 void delNode(String hostName, String portNumber, String database)
           
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void flush()
           
 Hashtable getServerInfo(Vector hosts, Vector ports)
           
 void init()
           
 void initInput()
           
 void initOutput()
           
 void setIndent(String indent)
           
 void setLineSeparator(String lineSeparator)
           
 void warning(SAXParseException err)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toplevel

public Element toplevel

toplevelInput

public Element toplevelInput

children

public NodeList children

curindex

public int curindex

useCData

public boolean useCData

entrytag

public String entrytag

valuetag

public String valuetag

db

public DocumentBuilder db
Constructor Detail

CSServersInfo

public CSServersInfo()
Method Detail

init

public void init()
          throws Exception
Throws:
Exception

initInput

public void initInput()
               throws Exception
Throws:
Exception

initOutput

public void initOutput()
                throws Exception
Throws:
Exception

getServerInfo

public Hashtable getServerInfo(Vector hosts,
                               Vector ports)
                        throws Exception
Throws:
Exception

addNode

public void addNode(String hostName,
                    String portNumber,
                    String database)
             throws Exception
Throws:
Exception

delNode

public void delNode(String hostName,
                    String portNumber,
                    String database)
             throws Exception
Throws:
Exception

setIndent

public void setIndent(String indent)

setLineSeparator

public void setLineSeparator(String lineSeparator)

flush

public void flush()

fatalError

public void fatalError(SAXParseException exception)
Specified by:
fatalError in interface ErrorHandler

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException err)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException