|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ws.brb.xml.BaseRuleImporterExporter
com.ibm.websphere.brb.RuleExporter
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 |
public RuleExporter(javax.naming.InitialContext ic) throws BusinessRuleBeansException
ic
- the initial context
BusinessRuleBeansException
- if an error occurs creating the parserMethod Detail |
public void addErrorListener(com.ibm.ws.brb.xml.ParsingErrorListener listener)
listener
- the error listenerpublic java.io.PrintWriter getOutputWriter()
public java.io.PrintWriter getErrorWriter()
public static void main(java.lang.String[] args) throws java.lang.Exception
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
args
- the command-line arguments to the RuleExporter
java.lang.Exception
public void setDocHandlerFlags(int currentFileNumber, int totalNumberOfFiles)
currentFileNumber
- The number of the export list file we are currently processing.totalNumberOfFiles
- The total number of export list files.public void setOutputWriter(java.io.PrintWriter writer)
writer
- the writer for the rulespublic void setErrorWriter(java.io.PrintWriter writer)
writer
- the error writer for the exporter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |