|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_ChangePublisher
Interface to hide the publisher destination.
A typical plugin publishes the changes to xmlBlaster MoM but could be any other data sink like JMS or file system as well.
Method Summary | |
---|---|
org.xmlBlaster.jms.XBSession |
getJmsSession()
Only used in replication, can return null if not used. |
void |
init(I_Info info)
After creation this method is called. |
java.lang.String |
publish(java.lang.String changeKey,
byte[] message,
java.util.Map attrMap)
Send the message to the MoM. |
boolean |
registerAlertListener(I_Update update,
java.util.Map attrs)
Register for alerts when the data source has changed. |
void |
shutdown()
Cleanup resources. |
Methods inherited from interface org.xmlBlaster.contrib.I_ContribPlugin |
---|
getUsedPropertyKeys |
Method Detail |
---|
void init(I_Info info) throws java.lang.Exception
init
in interface I_ContribPlugin
info
- The configuration environment
java.lang.Exception
- MoM specificjava.lang.String publish(java.lang.String changeKey, byte[] message, java.util.Map attrMap) throws java.lang.Exception
changeKey
- Can be used to create the topic namemessage
- The message content to sendattrMap
- An optional map with attributes or null
java.lang.Exception
- On sending problemsboolean registerAlertListener(I_Update update, java.util.Map attrs) throws java.lang.Exception
This funtionality is plugin depending, for example the xmlBlaster plugin has a configuration option to subscribe on a alert topic and listens if somebody publishes a message to it. If such a message arrives we trigger a new database poll.
update
- The callback interface to receive the notificationattrs
- extra parameters to pass for the registration. For example
if one implementation wants to do a specific extra subscription it would
pass the quality of service in the attributes.
java.lang.Exception
- The MoM specific exceptionvoid shutdown()
Can be called multiple times if instance is reused from different plugins.
shutdown
in interface I_ContribPlugin
I_Plugin
org.xmlBlaster.jms.XBSession getJmsSession()
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |