User Tools

Site Tools


replicator_agent_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
replicator_agent_plugins [2017/04/26 10:12]
willm [Enabling a plugin]
replicator_agent_plugins [2017/04/26 10:15] (current)
willm [Writing a plugin]
Line 43: Line 43:
     }     }
 </​code>​ </​code>​
- +The plugin developer creates a single class which is called for each Message that is being either shared or subscribed to. The processMessage java method can act upon the message as desired. All properties of the message ​are available to the plugin for reading and updating. Once the method returns the next plugin will be called until all plugins have been called. In the case of a <​subscribe>​ handler the message will then be passed to the handler for processing. If the task is <​share> ​type then the message will be published to the Message Bus.
-As you can see the API is very simple yet powerful. ​The plugin developer creates a single class which is called for each Message that is being either shared or subscribed to. The processMessage java method can act upon the message as desired. All properties of the Message ​are available to the plugin for reading and updating. Once the method returns the next plugin will be called until all plugins have been called. In the case of a <​subscribe>​ handler the message will then be passed to the handler for processing. If the task is of type <​share>​ then the message will be published to the Message Bus.+
  
  
replicator_agent_plugins.txt · Last modified: 2017/04/26 10:15 by willm