|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jumpmind.symmetric.ext.XmlPublisherFilter
public class XmlPublisherFilter
This is an optional data loader filter/listener that is capable of translating table data to XML and publishing it to JMS for consumption by the enterprise. It uses JDOM internally to create an XML representation of SymmetricDS data.
| Field Summary | |
|---|---|
protected IPublisher |
publisher
|
| Constructor Summary | |
|---|---|
XmlPublisherFilter()
|
|
| Method Summary | |
|---|---|
protected void |
addFormattedExtraGroupAttributes(IDataLoaderContext ctx,
org.jdom.Element xml)
Give the opportunity for the user of this publisher to add in additional attributes. |
void |
batchComplete(IDataLoader loader,
IncomingBatchHistory hist)
This method is called after a batch has been successfully processed. |
protected boolean |
doesXmlExistToPublish(IDataLoaderContext ctx)
|
boolean |
filterDelete(IDataLoaderContext ctx,
java.lang.String[] keys)
|
boolean |
filterInsert(IDataLoaderContext ctx,
java.lang.String[] data)
|
boolean |
filterUpdate(IDataLoaderContext ctx,
java.lang.String[] data,
java.lang.String[] keys)
|
java.lang.String[] |
getNodeGroupIdsToApplyTo()
|
protected java.util.Map<java.lang.String,org.jdom.Element> |
getXmlCache(IDataLoaderContext ctx)
|
boolean |
isAutoRegister()
Allow the plug-in implementation to specific whether the SymmetricDS runtime should auto register it or if it will register itself. |
void |
setAutoRegister(boolean autoRegister)
|
void |
setGroupByColumnNames(java.util.List<java.lang.String> groupByColumnNames)
This attribute is required. |
void |
setLoadDataInTargetDatabase(boolean loadDataInTargetDatabase)
|
void |
setNodeGroups(java.lang.String[] nodeGroups)
|
void |
setPublisher(IPublisher publisher)
|
void |
setTableNamesToPublishAsGroup(java.util.Set<java.lang.String> tableNamesToPublishAsGroup)
|
void |
setTableNameToPublish(java.lang.String tableName)
|
void |
setTimeStringGenerator(org.jumpmind.symmetric.ext.XmlPublisherFilter.ITimeGenerator timeStringGenerator)
Used to populate the time attribute of an XML message. |
void |
setXmlFormat(org.jdom.output.Format xmlFormat)
|
void |
setXmlTagNameToUseForGroup(java.lang.String xmlTagNameToUseForGroup)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IPublisher publisher
| Constructor Detail |
|---|
public XmlPublisherFilter()
| Method Detail |
|---|
public boolean isAutoRegister()
IExtensionPoint
isAutoRegister in interface IExtensionPointpublic java.lang.String[] getNodeGroupIdsToApplyTo()
getNodeGroupIdsToApplyTo in interface INodeGroupExtensionPoint
public boolean filterDelete(IDataLoaderContext ctx,
java.lang.String[] keys)
filterDelete in interface IDataLoaderFilter
public boolean filterUpdate(IDataLoaderContext ctx,
java.lang.String[] data,
java.lang.String[] keys)
filterUpdate in interface IDataLoaderFilter
public boolean filterInsert(IDataLoaderContext ctx,
java.lang.String[] data)
filterInsert in interface IDataLoaderFilter
protected void addFormattedExtraGroupAttributes(IDataLoaderContext ctx,
org.jdom.Element xml)
IDataLoaderContext.
ctx - xml - append XML attributes to this bufferprotected java.util.Map<java.lang.String,org.jdom.Element> getXmlCache(IDataLoaderContext ctx)
protected boolean doesXmlExistToPublish(IDataLoaderContext ctx)
public void batchComplete(IDataLoader loader,
IncomingBatchHistory hist)
IBatchListener
batchComplete in interface IBatchListenerpublic void setTableNamesToPublishAsGroup(java.util.Set<java.lang.String> tableNamesToPublishAsGroup)
public void setTableNameToPublish(java.lang.String tableName)
public void setXmlTagNameToUseForGroup(java.lang.String xmlTagNameToUseForGroup)
public void setGroupByColumnNames(java.util.List<java.lang.String> groupByColumnNames)
public void setLoadDataInTargetDatabase(boolean loadDataInTargetDatabase)
public void setPublisher(IPublisher publisher)
setPublisher in interface IPublisherFilterpublic void setNodeGroups(java.lang.String[] nodeGroups)
public void setAutoRegister(boolean autoRegister)
public void setTimeStringGenerator(org.jumpmind.symmetric.ext.XmlPublisherFilter.ITimeGenerator timeStringGenerator)
public void setXmlFormat(org.jdom.output.Format xmlFormat)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||