You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2009/09/08 07:12:57 UTC

[jira] Assigned: (SYNAPSE-580) Expose message size metrics from transports to mediation level (as message property)

     [ https://issues.apache.org/jira/browse/SYNAPSE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Linton reassigned SYNAPSE-580:
------------------------------------

    Assignee: Hiranya Jayathilaka

> Expose message size metrics from transports to mediation level (as message property)
> ------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-580
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-580
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Transports
>            Reporter: Eric Hubert
>            Assignee: Hiranya Jayathilaka
>
> To be able to analyse traffic it should be possible to write custom mediators which use exposed transport metrics which e.g. contain information about message sizes without having to go for an additional round of message serialization.
> Any code written on the mediation layer, something like:
> Parameter synEnvParam = messageContext.getConfiguration().getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_ENV);
> SynapseEnvironment synEnv = (SynapseEnvironment) synEnvParam.getValue();
> TemporaryData serialized = synEnv.createTemporaryData();
> OutputStream out = serialized.getOutputStream();
> try {
>     messageContext.getEnvelope().serialize(out);
> } finally {
>     out.close();
> }
> int messageSize = serialized.getLength(); 
> would add an additional overhead to the system. Instead any transport should expose metrics which can be correlated to actual messages, allowing mediation level code to access those metrics (e.g. as message context property).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org