synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hubert (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-580) Expose message size metrics from transports to mediation level (as message property)
Date Mon, 07 Sep 2009 17:56:57 GMT
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


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