|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopenr66.configuration.RuleFileBasedConfiguration
public class RuleFileBasedConfiguration
Rule File Based Configuration
Field Summary | |
---|---|
static String |
EXT_RULE
Extension of rule files |
static String |
EXT_RULES
Extension of multiple rules in one file |
static goldengate.common.xml.XmlDecl[] |
hostsDecls
|
static goldengate.common.xml.XmlDecl[] |
tasksDecl
|
static String |
XHOSTID
|
static String |
XHOSTIDS
|
static String |
XTASK
|
static String |
XTASKS
|
Constructor Summary | |
---|---|
RuleFileBasedConfiguration()
|
Method Summary | |
---|---|
static DbRule |
getFromFile(File file)
Load and update a Rule from a file |
static String[] |
getHostIds(goldengate.common.xml.XmlValue value)
|
static List<DbRule> |
getMultipleFromFile(File file)
Load and update multiple Rules from one file |
static String[][] |
getTasksRule(goldengate.common.xml.XmlValue value)
Utility function |
static void |
importRules(File configDirectory)
Import all Rule files into the HashTable of Rules |
static String |
writeOneXml(String directory,
String hostname)
Write to directory 1 file prefixed by hostname all Rules from database |
static void |
writeXml(String directory,
String hostname)
Write to directory files prefixed by hostname all Rules from database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XHOSTIDS
public static final String XHOSTID
public static final String XTASKS
public static final String XTASK
public static final goldengate.common.xml.XmlDecl[] tasksDecl
public static final goldengate.common.xml.XmlDecl[] hostsDecls
public static final String EXT_RULE
public static final String EXT_RULES
Constructor Detail |
---|
public RuleFileBasedConfiguration()
Method Detail |
---|
public static void importRules(File configDirectory) throws OpenR66ProtocolSystemException, goldengate.common.database.exception.GoldenGateDatabaseException
configDirectory
-
OpenR66ProtocolSystemException
goldengate.common.database.exception.GoldenGateDatabaseException
public static String[][] getTasksRule(goldengate.common.xml.XmlValue value)
value
-
public static String[] getHostIds(goldengate.common.xml.XmlValue value)
value
- the XmlValue hosting hostids/hostid
public static DbRule getFromFile(File file) throws OpenR66ProtocolSystemException, goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException, goldengate.common.database.exception.GoldenGateDatabaseSqlException, goldengate.common.database.exception.GoldenGateDatabaseNoDataException, goldengate.common.database.exception.GoldenGateDatabaseException
file
-
OpenR66ProtocolSystemException
goldengate.common.database.exception.GoldenGateDatabaseException
goldengate.common.database.exception.GoldenGateDatabaseNoDataException
goldengate.common.database.exception.GoldenGateDatabaseSqlException
goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException
OpenR66ProtocolNoDataException
public static List<DbRule> getMultipleFromFile(File file) throws OpenR66ProtocolSystemException, goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException, goldengate.common.database.exception.GoldenGateDatabaseSqlException, goldengate.common.database.exception.GoldenGateDatabaseNoDataException, goldengate.common.database.exception.GoldenGateDatabaseException
file
-
OpenR66ProtocolSystemException
goldengate.common.database.exception.GoldenGateDatabaseException
goldengate.common.database.exception.GoldenGateDatabaseNoDataException
goldengate.common.database.exception.GoldenGateDatabaseSqlException
goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException
OpenR66ProtocolNoDataException
public static final void writeXml(String directory, String hostname) throws goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException, goldengate.common.database.exception.GoldenGateDatabaseSqlException, OpenR66ProtocolSystemException
directory
- hostname
-
goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException
goldengate.common.database.exception.GoldenGateDatabaseSqlException
OpenR66ProtocolSystemException
public static String writeOneXml(String directory, String hostname) throws goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException, goldengate.common.database.exception.GoldenGateDatabaseSqlException, OpenR66ProtocolSystemException
directory
- hostname
-
goldengate.common.database.exception.GoldenGateDatabaseNoConnectionException
goldengate.common.database.exception.GoldenGateDatabaseSqlException
OpenR66ProtocolSystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |