You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Michael Schneider <Mi...@virtustream.com> on 2015/06/17 18:10:09 UTC

Failed tasks: I want to provide additional information in Activity section

Hi!

I have some custom effector implemented by means of a Brooklyn task, and this effector call may fail, in which case an exception is thrown. In case of an exception, the Brooklyn GUI "Activity" section shows the message of the exception and also the whole stack trace, which is good. However, my exception has some custom methods associated to custom fields that provide additional information about the cause of the error. In my particular case, it is the exit code and the stderr output of an external program that was run by the effector task. I now wonder whether there a way to somehow show this additional information in the Activity section? I understand that one way to do this would be to add this information to the exception message, but I would like to avoid this, if there were an alternative means to show custom information in the Activity section.

Michael

Michael Schneider
Senior Software Engineer

Virtustream Inc.
6 Concourse Parkway | Suite 1930 | Atlanta | GA 30328
Cell: +49 (176) 24102310
michael.schneider@virtustream.com<ma...@virtustream.com> | www.virtustream.com<http://www.virtustream.com/>

Keep up with Virtustream:
Blog<http://www.virtustream.com/blog/> * Twitter<https://twitter.com/#%21/virtustream> * LinkedIn<http://www.linkedin.com/company/virtustream> * Slideshare<http://www.slideshare.net/Virtustream> * YouTube<http://www.youtube.com/user/Virtustream>

The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting the email and its attachments from all computers without copying or disclosing it.

Re: Failed tasks: I want to provide additional information in Activity section

Posted by Svetoslav Neykov <sv...@cloudsoftcorp.com>.
Hi Michael,

You could try overriding the getStatusString(int) method of your task to build a custom error message. Refer to the BasicTask method implementation for reference.

Svet.


> On 17.06.2015 г., at 19:10, Michael Schneider <Mi...@virtustream.com> wrote:
> 
> Hi!
> 
> I have some custom effector implemented by means of a Brooklyn task, and this effector call may fail, in which case an exception is thrown. In case of an exception, the Brooklyn GUI "Activity" section shows the message of the exception and also the whole stack trace, which is good. However, my exception has some custom methods associated to custom fields that provide additional information about the cause of the error. In my particular case, it is the exit code and the stderr output of an external program that was run by the effector task. I now wonder whether there a way to somehow show this additional information in the Activity section? I understand that one way to do this would be to add this information to the exception message, but I would like to avoid this, if there were an alternative means to show custom information in the Activity section.
> 
> Michael
> 
> Michael Schneider
> Senior Software Engineer
> 
> Virtustream Inc.
> 6 Concourse Parkway | Suite 1930 | Atlanta | GA 30328
> Cell: +49 (176) 24102310
> michael.schneider@virtustream.com<ma...@virtustream.com> | www.virtustream.com<http://www.virtustream.com/>
> 
> Keep up with Virtustream:
> Blog<http://www.virtustream.com/blog/> * Twitter<https://twitter.com/#%21/virtustream> * LinkedIn<http://www.linkedin.com/company/virtustream> * Slideshare<http://www.slideshare.net/Virtustream> * YouTube<http://www.youtube.com/user/Virtustream>
> 
> The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting the email and its attachments from all computers without copying or disclosing it.


-- 
Cloudsoft Corporation Limited, Registered in Scotland No: SC349230. 
 Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP
 
This e-mail message is confidential and for use by the addressee only. If 
the message is received by anyone other than the addressee, please return 
the message to the sender by replying to it and then delete the message 
from your computer. Internet e-mails are not necessarily secure. Cloudsoft 
Corporation Limited does not accept responsibility for changes made to this 
message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of 
viruses, it is the responsibility of the recipient to ensure that the 
onward transmission, opening or use of this message and any attachments 
will not adversely affect its systems or data. No responsibility is 
accepted by Cloudsoft Corporation Limited in this regard and the recipient 
should carry out such virus and other checks as it considers appropriate.