Issue 11731

Add convenience methods to easily send our built-in Messages

11731
Reporter: lfrancke
Type: Improvement
Summary: Add convenience methods to easily send our built-in Messages
Priority: Minor
Resolution: WontFix
Status: Closed
Created: 2012-08-24 10:58:55.015
Updated: 2015-03-02 15:42:34.05
Resolved: 2015-03-02 15:42:34.028
        
Description: It's relatively easy to send a message

{code}
Message msg = new CrawlStartedMessage(job.getDatasetUuid(), job.getAttempt());
service.send(msg);
{code}

but it could be made even easier with a few helper methods:

{code}
MessagingHelper helper = new MessagingHelper(service);
helper.sendCrawlStartedMessage(job.getDatasetUuid(), job.getAttempt());
{code}]]>