|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.contrib.dbwriter.DbWriter
public class DbWriter
Field Summary | |
---|---|
static java.lang.String |
CASE_SENSITIVE_KEY
|
private java.lang.String |
charSet
|
static java.lang.String |
DB_POOL_KEY
|
private I_DbPool |
dbPool
|
private I_ChangePublisher |
eventEngine
|
private I_Info |
info
|
static java.lang.String |
INITIAL_UPDATE_EVENT_POST
|
static java.lang.String |
INITIAL_UPDATE_EVENT_PRE
|
private boolean |
isAlive
|
private static java.util.logging.Logger |
log
|
private I_Parser |
parser
|
private boolean |
poolOwner
|
static java.lang.String |
QUOTE_COLUMN_NAMES_KEY
dbWriter.quoteColumnNames=true: Add quotes around the column names like "COMMENT" instead of COMMENT, this is e.g. |
private I_Update |
registeredForUpdates
|
private I_Writer |
writer
|
Constructor Summary | |
---|---|
DbWriter()
Default constructor, you need to call init(org.xmlBlaster.contrib.I_Info) thereafter. |
|
DbWriter(I_Info info)
Convenience constructor, creates a processor for changes, calls init(org.xmlBlaster.contrib.I_Info) . |
Method Summary | |
---|---|
static java.util.List |
createDbWriters(I_Info masterInfo)
Creates a list of DbWriter instances. |
private static I_DbPool |
createPool(java.lang.ClassLoader cl,
I_Info info)
|
static DbWriter |
createSingleDbWriter(I_Info masterInfo,
java.lang.String loginName,
java.lang.String password)
Creates an Instance of a DbWriter with the given configuration. |
I_Info |
getInfo()
|
boolean |
getPoolOwner()
|
void |
init(I_Info info)
Creates a processor for changes. |
void |
registerForUpdates(I_Update registeredForUpdates)
|
static void |
setPoolOwner(DbWriter writer,
boolean poolOwner)
|
void |
shutdown()
Cleanup resources. |
private void |
shutdown(I_ContribPlugin plugin)
|
void |
update(java.lang.String topic,
java.io.InputStream is,
java.util.Map attrMap)
Determines wether the message is a database dump or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INITIAL_UPDATE_EVENT_PRE
public static final java.lang.String INITIAL_UPDATE_EVENT_POST
private static java.util.logging.Logger log
public static final java.lang.String DB_POOL_KEY
public static final java.lang.String CASE_SENSITIVE_KEY
public static final java.lang.String QUOTE_COLUMN_NAMES_KEY
private I_Info info
private I_ChangePublisher eventEngine
private I_Parser parser
private I_Writer writer
private I_DbPool dbPool
private boolean poolOwner
private boolean isAlive
private I_Update registeredForUpdates
private java.lang.String charSet
Constructor Detail |
---|
public DbWriter()
init(org.xmlBlaster.contrib.I_Info)
thereafter.
public DbWriter(I_Info info) throws java.lang.Exception
init(org.xmlBlaster.contrib.I_Info)
.
info
- Configuration
java.lang.Exception
- Can be of any typeMethod Detail |
---|
public static DbWriter createSingleDbWriter(I_Info masterInfo, java.lang.String loginName, java.lang.String password) throws java.lang.Exception
masterInfo
- loginName
- password
-
java.lang.Exception
public static java.util.List createDbWriters(I_Info masterInfo) throws java.lang.Exception
info
-
java.lang.Exception
public static void setPoolOwner(DbWriter writer, boolean poolOwner)
public boolean getPoolOwner()
private static final I_DbPool createPool(java.lang.ClassLoader cl, I_Info info) throws java.lang.Exception
java.lang.Exception
public void init(I_Info info) throws java.lang.Exception
#startAlertProducers
info
- Configuration
java.lang.Exception
- Can be of any typepublic I_Info getInfo()
private void shutdown(I_ContribPlugin plugin)
public void shutdown()
java.lang.Exception
- Can be of any typepublic void update(java.lang.String topic, java.io.InputStream is, java.util.Map attrMap) throws java.lang.Exception
update
in interface I_Update
topic
- The topic nameattrMap
- A map with attribute, can be null
java.lang.Exception
public void registerForUpdates(I_Update registeredForUpdates)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |