com.ibm.websphere.brb
Class RuleExporter

java.lang.Object
  extended bycom.ibm.ws.brb.xml.BaseRuleImporterExporter
      extended bycom.ibm.websphere.brb.RuleExporter

Deprecated. IBM Internal Use Only. There is no planned replacement for this functionality.

public class RuleExporter
extends com.ibm.ws.brb.xml.BaseRuleImporterExporter

A tool that exports rules into an XML document. The rules that are exported are determined by an XML document which is provided to the tool. The RuleExporter should normally be invoked using the ruleexporter.bat|sh that is provided.


Field Summary
 
Fields inherited from class com.ibm.ws.brb.xml.BaseRuleImporterExporter
BRB_XML_RESOURCE_BUNDLE, parser
 
Constructor Summary
RuleExporter(javax.naming.InitialContext ic)
          Deprecated. Creates a new RuleExporter.
 
Method Summary
 void addErrorListener(com.ibm.ws.brb.xml.ParsingErrorListener listener)
          Deprecated. Add a listener that listens for errors that occured during the import.
 java.io.PrintWriter getErrorWriter()
          Deprecated. Return the error writer for the exporter, if any.
 java.io.PrintWriter getOutputWriter()
          Deprecated. Return the writer for the rules.
static void main(java.lang.String[] args)
          Deprecated. Export rules as specified by the given args.
 void setDocHandlerFlags(int currentFileNumber, int totalNumberOfFiles)
          Deprecated. Set the document handler flags that indicate where we are in the sequence of export list files.
 void setErrorWriter(java.io.PrintWriter writer)
          Deprecated. Set the error writer for the exporter.
 void setOutputWriter(java.io.PrintWriter writer)
          Deprecated. Set the writer for the rules.
 
Methods inherited from class com.ibm.ws.brb.xml.BaseRuleImporterExporter
getCurrentFileName, getInitialContext, getMessage, getRootRuleFolder, getVerboseWriter, isCommitEach, isVerbose, parse, setCommitEach, setVerboseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleExporter

public RuleExporter(javax.naming.InitialContext ic)
             throws BusinessRuleBeansException
Deprecated. 
Creates a new RuleExporter.

Parameters:
ic - the initial context
Throws:
BusinessRuleBeansException - if an error occurs creating the parser
Method Detail

addErrorListener

public void addErrorListener(com.ibm.ws.brb.xml.ParsingErrorListener listener)
Deprecated. 
Add a listener that listens for errors that occured during the import.

Parameters:
listener - the error listener

getOutputWriter

public java.io.PrintWriter getOutputWriter()
Deprecated. 
Return the writer for the rules.

Returns:
the writer for the rules

getErrorWriter

public java.io.PrintWriter getErrorWriter()
Deprecated. 
Return the error writer for the exporter, if any. This is the PrintWriter to which information about errors will be written by the exporter. Note: error information is always sent to the verbose writer, if there is one. It is also sent to the error writer if one is specified.

Returns:
The error writer for the exporter or null if there isn't one.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Deprecated. 
Export rules as specified by the given args. The following is the usage:
 Usage: java com.ibm.websphere.brb.RuleExporter [options] files ...
 Options:
 	-[?]              Display this message
 	-[v]erbose        Verbose output
 	-[o]utput {name}  The name of the file for the output of the rules
 	-[h]ost {name}    The host for the name server (default is localhost)
 	-[p]ort {number}  The port for the name server (default is 2809)
 
 Example: to export the rules as described in file1 and file2 to output file outfile:
 	java com.ibm.websphere.brb.RuleExporter -h myserver.ibm.com -o outfile file1 file2
 

Parameters:
args - the command-line arguments to the RuleExporter
Throws:
java.lang.Exception

setDocHandlerFlags

public void setDocHandlerFlags(int currentFileNumber,
                               int totalNumberOfFiles)
Deprecated. 
Set the document handler flags that indicate where we are in the sequence of export list files.

Parameters:
currentFileNumber - The number of the export list file we are currently processing.
totalNumberOfFiles - The total number of export list files.

setOutputWriter

public void setOutputWriter(java.io.PrintWriter writer)
Deprecated. 
Set the writer for the rules.

Parameters:
writer - the writer for the rules

setErrorWriter

public void setErrorWriter(java.io.PrintWriter writer)
Deprecated. 
Set the error writer for the exporter. This is the PrintWriter to which information about any errors is sent. Note: error information is always sent to the verbose writer, if there is one. It is also sent to the error writer if one is specified.

Parameters:
writer - the error writer for the exporter