synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Linton (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (SYNAPSE-580) Expose message size metrics from transports to mediation level (as message property)
Date Tue, 08 Sep 2009 05:12:57 GMT

     [ 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


Mime
View raw message